AllTrades

View as Markdown

Definition

A TradeCollection object of all trades generated by a strategy.

Syntax

SystemPerformance.AllTrades

Examples

1protected override void OnBarUpdate()
2{
3 // Print out the number of long trades
4 Print("The strategy has taken " + SystemPerformance.AllTrades.Count + " trades.");
5}