0) Primary Bar is 6 Range Bars
1) Secondary Bar is Tick Bars
When OnBarUpdate() is executed for a Tick, what value should Closes[0][0] have?
Is it for the previous Range bar or the current Range bar?
My observation is that:
when executed on historical data, Closes[0][0] refers to the previous Range bar.
when executed on live data, Closes[0][0] refers to current Range bar.
Is this correct or am I missing something?

Comment