during testing it has come to my attention that NT excludes the last bar in test runs(optimizer & backtest)
protected override void OnBarUpdate() { if (CurrentBars[0] > Bars.Count - 5) { Print(Times[0][0] + " " + CurrentBars[0] + " " + Bars.Count); } }
03/06/2020 15:56:51 163705 163709 03/06/2020 16:00:57 163706 163709 03/06/2020 16:12:47 163707 163709
NT version is: 8.0.22.0
Comment