- If closing price is either above or below the specified moving average
- Default is ‘200’. The length of the moving average.
- Default is ‘SMA’. The type of moving average.
- 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:
Stochastic Trend for Higher Timeframe