I’m trying to create an indicator that should look at a condition only on the open of the candle and not subsequently.
I thought I could do something like this:
if opentime and condition1 then
drawcandle(open,high,low,close)
endif
But I’m not sure if this is the correct way to use OpenTime?
Any help appreciated as always.
Thanks
Rob
You have to compare OPENTIME to some value retaining a valid time:
if opentime = 100000 and condition1 then