I would like to use this piece of code in an optimizer fitness:
foreach (Trade myTrade in strategy.SystemPerformance.AllTrades)
{
I am getting the error: "An object reference is required for the non-static field, method, or property 'NinjaTrader.Cbi.SystemPerformance.AllTrades.get'"
What would be the right code?
Comment