Hi,
I am trying to create a simple intraday screener that looks for stocks where the second candle’s close > first candle’s close. I have tried to make the following code but it doesn’t seem to work. Can you please assist with this and it will be very helpful to show how to use the “Intradaybarindex” for screeners as there are no examples of this that I could find? Thank you.
//Price filter
c1 = close > 2
//Volume filter
c2 = volume > 500
IF Intradaybarindex = 1 THEN
c3 = Close[0] > Close[1]
ENDIF
c9 = AverageTrueRange[14](close)
screen = c1 AND c2 AND c3
screener[screen](c9 AS "ATR")
Bear in mind thate thers’s a 254-bar limit on IG (1024 on PRT’s premium), so if you are applying the screener to a 1-minute TF, you won’t get correct results, as there are more than 254 intraday bars.