I figured out, that on transition form Historical to RealTime, CalculateOnBarClose() method run on non-completed bar.
Close time and price on this non-completed are "fake": after bar completion it will have another close time and price.
Method OnStateChange() with State == State.Transition calls after.
So, is there any way to determine than OnBarUpdate() run on non-completed bar before (at) transition?
Comment