Hi,
currently i am struggling to write code to verify the trend of a larger time frame with in the lower timeframe pro-screener.
For example, when all conditions are met at lower time frame for a long setup, lets say 5mins i want to make sure trend is bullish in the higher time frames such as 30 mins, 1 hour and daily.
Really appreciate any help in this regard
Let’s assume you identify the trend using an SMA200:
Timeframe(30 minute)
UPtrend = close > average[200,0](close)
//
TimeFrame(default) //the TF on your chart (no hgher than 30 minutes)
MyConditions = ....
Result = MyConditions AND UPtrend
SCREENER[Result]
you will code line 5 with your conditions.