During OnBarUpdate(), the code checks BarsInProgress and branches to the appropriate code for each dataseries. The code for the 400 tick dataseries also tests Count and CurrentBar, to determine when historical data has finished loading.
What I've noticed is, BEFORE historical data has finished loading -
- when running in real time, OnBarUpdate() events arrive for all three dataseries, in the proper order, as you would expect.
- when running under Market Replay, only OnBarUpdate() events for the original 400 tick dataseries - the series on the chart - arrrive. No events arrive for the one second or five minute dataseries.
After historical data has finished loading, Market Replay behaves like real time - with OnBarUpdate events arriving for all three data series.
Is it supposed to work this way? Is there a way my code can programmatically tell that it's running under Market Replay, so I can get (force) the indicator to behave the same way under both conditions?
thanks
Comment