Collect data from Output window to an array/list
13.08.2021 17.54

NinjaTrader 8 Backtesting Strategies Tutorial

NinjaCoding friend

I was able to replicate optimization iterations to output window. (See attached image below)

Now I need to find a way to:
1) collect data from Output window to an array/list
2) Sort by net profit
3) add values to each iteration.

I tried using OnMergePerformanceMetric() and OnOptimize() methods, but those are not working with Optimization Fitness script I suppose.