@SleepyZ, can you please enlighten me once again or punt me to some books (lol)? You have this wired to check for highest close but I wanted lowest low. i tried for like 2 hours today but I know it's just a programming concept that I don't know:
I did
but my scan doesn't work at all.
The concept i have trouble with is how '
tclose[1] ' is calculated? I think it's recursive but I am having trouble wrapping my brain around it. I even tried
Ruby:
Min(lowest(low(period = aggregationPeriod.min, 330)), tclose[1])
No dice.
I was also trying to change criteria towards the end, looking for % change. So I was looking at previous day's high, percent change to pre-market lows.
Ruby:
plot scan = if thisday == 0 and ((phigh - tclose[1]) / phigh) > percChange and tclose > 0 then 1 else 0;
EDIT:
I am re-reading the documentation on
https://tlc.thinkorswim.com/center/...dvanced/Chapter-12---Past-Offset-and-Prefetch
https://tlc.thinkorswim.com/center/...Appendix-D---Using-NaN-and-Infinity-Constants
and it seems to be making more sense. I will probably have this worked out in a couple of days and will update here for others.