As a simple test try to use this as an optimization type implementation:
public override double GetPerformanceValue(SystemPerformance systemPerformance) {
this.Strategy.Log("Count: " + systemPerformance.AllTrades.Count, NinjaTrader.Cbi.LogLevel.Information);
return systemPerformance.AllTrades.Count;
}
If you use the debugger you'll see the collections like AllTrades, LongTrades etc. are empty while the performance statistics are still available. So using systemPerformance.AllTrades.TradesCount will work, but systemPerformance.AllTrades.Count will just return '0'.
Does anyone know what's going on here?

Comment