AddDataSeries(Instrument.FullName, BarsPeriodType.Tick, 1, MarketDataType.Last); //indi is set: OnEachTick
Lets say, when I use this:
Print(BarsInProgress + " | " + Time[0].ToString() + " = " + Close[0]);
on i.e. xx:24 minute bar (which has: OHLC : 84|86|83|85 i might see something:
0 | ..xx:24:00 = 85
1| .. xx:24:01 = 85
1| .......
1| .......
1| .. xx:24:33 = 79
1| .......
1| .. xx:24:46 = 91
1| .......
1| .. xx:24:59 = 90
So as according to that tick-series, this bar should bave been OHCL 85|91|79|90 . However, OHLC with exactly these values, is on BIP 0 on the next bar.
0 | ..xx:25:00 = 90
1| .......
1| ........
So, I assume that the Primary Timeframe bar shows the data of PREVIOUS interval (like, xx:25:00 bar, shows OHLC of xx:24:00-xx:25:00 interval).
This test happens on historical backtest, havent checked in realtime yet.
How that happens, any explanation? I hope I've explained well,
Comment