in function Update(period), could some one tell me how to compare the the candle length with a constant?
I use source.close[period] - source.open[period] in if condition as below:
if source.high[period] - source.low[period] >30 then
...
else
...
it seems not work! always go to else, except only I replace 30 or any other number to 0
Another question, how to get the time of one specific candle, such as
mark all the candle bar at 0:00 oclock on hourly chart.
Any helps will be highly appreciated.