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