Hi, I am using a 3 consecutive candle screener searching for short term uptrends but I would like the screener to show me when the conditions were met on a previous date (so that I can see how stock behaved after meeting these conditions)
It’s only working for the last trading day, I get 0 results when I change the date to anything other than last trading day. How do I get there screener to show the conditions met for previous days?
a = close
b = close [1]
c = close [2]
d = close [3]
if a>b and b>c and c>d then
i =1
else
i = 0
endif
minVolume = 100000
minClose = 20
idate = 20190524
SCREENER [i and Volume>minVolume and Close>minClose and date=idate]
I’m not big on the workings of screeners but I’m guessing that you could just change:
a = close
b = close [1]
c = close [2]
d = close [3]
to something like this to test for the same thing 10 candles ago:
a = close[9]
b = close [10]
c = close [11]
d = close [12]