I want to store one specific candle of the day, say O=H or O=L in variable and it will be valid until next such candle form,
Once I get candle, need to get OHLC data of this candle,
How can I store this candle?
I want to store one specific candle of the day, say O=H or O=L in variable and it will be valid until next such candle form,
Once I get candle, need to get OHLC data of this candle,
How can I store this candle?
The var
keyword retains the value of a variable. You can use it like this:
var float o_open = na
var float o_high = na
var float o_low = na
var float o_close = na
if your_condition
o_open := open
o_high := high
o_low := low
o_close := close