ShortTrades

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > SystemPerformance >

ShortTrades

Previous page Return to chapter overview Next page

Definition

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

 

Syntax

SystemPerformance.ShortTrades

 

 

Examples

ns


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