Quick question,
I have a multi time frame script. For this example we will assume it is using a 1 minute chart and the secondary data series is 60 minutes.
I would like to access the current 60 minute candles open during a backtest but since it works OnBarClose when I access that open value (Opens[1][0]) it just gives me the last closed candles open. For example,
Lets say it is 1:20pm. The 1:00pm candle was the most recently closed candle so even though there is a candle forming at this moment (the 2:00pm candle) if I ask for the Opens[1][0] I still get the open of the 1:00pm candle. Is there a way to get around this other than using the Closes[1][0] ? Sometimes there can be a gap, just figured I would ask.
It works in realtime obviously when I have the strategy set to OnEachTick. Want to see if there is a workaround in Backtest
Thanks!

Comment