NinjaScript > Language Reference > Strategy > Performance >
ShortTrades
Definition
ShortTrades is a TradeCollection object of short trades generated by a strategy.
Syntax
Performance.ShortTrades
Examples
protected override void OnBarUpdate() { // Print out the number of short trades
Print("The strategy has taken " + Performance.ShortTrades.Count + " short trades."); }