NinjaScript > Language Reference > Strategy > Performance >

LongTrades

Print this Topic Previous pageReturn to chapter overviewNext page

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