I have a primary data series with my custom bar type built from ticks.
This works perfectly and opens and closes as it should.
In the indicator i add a 1 tick data series :
AddDataSeries(BarsPeriodType.Tick, 1); in the configure section of OnStateChange...
In OnBarUpdate i am collecting the 1 tick information and storing it against the primary bars after some of my checks and calculations on the 1 tick data.
It seems when i load the chart and is in Historical state .... in order to align the 1 tick data referenced in BarsInProgress == 1 via the Closes[1][0] etc .... that
in Historical mode i need to include it at CurrentBars[0] + 1
then once RealTime kicks in it is CurrentBars[0]
if i dont do CurrentBars[0] +1 for Historical the information doesnt line up with the open/close/high/low of the primary bar. if i do it aligns correctly.
However i am wondering if i additionally need to make timestamp checks or other checks to sync the 2 series?
Or is this expected when in historical mode processing and loading a chart?
thanks
Comment