TradesCount

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

TradesCount

Previous page Return to chapter overview Next page

Definition

Returns the total # of trades.

 

Property Value

A double value that represents the total # of trades.

 

Syntax
<TradeCollection>.TradesPerformance.TradesCount

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the total # of trades
    Print("Trades count is: " + SystemPerformance.AllTrades.TradesPerformance.TradesCount);
}