would it be possible to add new virtual method which will be executed when Backtesting is completed.
protected override void OnBacktestingCompleted(TradeCollection trades) { /* single*/ }
protected override void OnBacktestingCompleted(TradeCollection[] trades) { /* or multiple/optimization/etc */ }
// OR
protected override void OnBacktestingCompleted(SystemPerformance performance) { /* single */ }
protected override void OnBacktestingCompleted(SystemPerformance[] performance) { /* or multiple/optimization/etc */ }
I know I can get almost but not the same with code below (but issue here that I never will get last closed trade which was closed by NT by On Session Close because of End of historical period):
if (CurrentBars[BarsInProgress] == BarsArray[BarsInProgress].Count-2) {}
So please if you could add this feature into your backlog would be very great.
Thanks!
Comment