A TradeCollection object of all trades generated by a strategy.
Syntax
SystemPerformance.AllTrades
Examples
protectedoverridevoidOnBarUpdate() { // Print out the number of long trades Print("The strategy has taken "+SystemPerformance.AllTrades.Count+" trades."); }