I’m trying to capture the time, date and the barindex of the highest candle in a specific period using
HighCheck = Highest[20](High)
How can I do this please?
Thanks again, Rob
Use a loop.
HighCheck = Highest[20](High)
for a = 0 to 19
if high[a] = highcheck then
mydate = date[a]
mytime = time[a]
mybarindex = barindex - a
break
endif
next
Perfect, thanks again Vonasi.
Vonasi code above added as Log 221 here …
Snippet Link Library