LongTrades

View as Markdown

Definition

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

Syntax

SystemPerformance.LongTrades

Examples

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