ShortTrades

View as Markdown

Definition

ShortTrades is a TradeCollection object of short trades generated by a strategy.

Syntax

SystemPerformance.ShortTrades

Examples

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