I understand that in OnBarUpdate() we can access the property values of the bar that just closed and it is called when a new bar opens. Now, since it is called when the new bar opens, can we somehow get the opening price of the new bar without resorting to CalculateOnBarClose = false?
I have some logic which needs to be executed immediately based on the opening price and it should work in a similar way with historical data too (hence, I use CalculateOnBarClose = true). So, is it possible to get the opening price of the new bar in OnBarUpdate()?
Thanks,
Ishwar.
Comment