Performance.AllTrades.Count gives me the actual number of AllTrades back. Thats ok. But when i try to get the trade in Objekt, there is nothing in it and the backtesting interrupts with no results. It seems that the trades collection releases, when i try access a specific trade object.
Print("short:_" + Performance.AllTrades.Count); Trade lastTrade = Performance.AllTrades[Performance.AllTrades.Count - 1]; Print(lastTrade.Entry.Name);
Comment