Price Above/Below MA



In this page, you will learn about the ‘Price Above/Below MA’ conditions.



There are 4 different inputs:
Above/Below - If closing price is either above or below the specified moving average
Length - Default is ‘200’. The length of the moving average.
SMA/EMA - Default is ‘SMA’. The type of moving average.
Timeframe - Default is ‘1 hour’. The timeframe for the moving average. Must be an equal or higher timeframe to the current chart.
For example, if you wanted to code a strategy where one of the entry conditions were:
Price must close above 4-hour 200 SMA
You would input it like this: