i wrote a strategy which uses 4 Timeframes.
1 Minute, 2 Seconds, 10 Seconds and 30 Seconds.
this works perfect until 31 December 2021.
currently the OnBarUpdate only called with the CharTimeFrame.
I build a new Strategy to show my issue (Attachted)
As you see, i Print the Current BarsInProgress to the Ouput.
After finishing the Historical Data, the OnBarUpdate is not called anymore.
(Attached png is a Screenshot from Output)
this is the last Line in Output:
Enabling NinjaScript strategy 'DataSeriesSample/252736643' : On starting a real-time strategy - StartBehavior=WaitUntilFlat EntryHandling=All entries EntriesPerDirection=1 StopTargetHandling=Per entry execution ErrorHandling=Stop strategy, cancel orders, close positions ExitOnSessionClose=False SetOrderQuantityBy=Strategy ConnectionLossHandling=Recalculate DisconnectDelaySeconds=10 CancelEntriesOnStrategyDisable=False CancelExitsOnStrategyDisable=False Calculate=On price change IsUnmanaged=False MaxRestarts=4 in 5 minutes
In the case, i remove the AddDataSeries Line from the Strategy, OnBarUpdate is called as expected.
In my Original Strategy, OnBarUpdate is also called after this "Enabling"-Outputline, but only with Timeframes greater-than-or-equal (to) then Chart-TimeFrame.
This behavior changes from one Day to the next.
Comment