ShortTrades

View as Markdown

Definition

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

Syntax

SystemPerformance.ShortTrades

Examples

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