LongTrades

View as Markdown

Definition

LongTrades is a TradeCollection object of long trades generated by a strategy.

Syntax

SystemPerformance.LongTrades

Examples

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