NinjaScript > Language Reference > Strategy > Performance >

ShortTrades

Print this Topic Previous pageReturn to chapter overviewNext page

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.");
}