NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

TradesPerDay

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns the average number of trades per day.
 

Property Value

An int value that represents the average number of trades per day.

 

Syntax
<TradeCollection>.TradesPerformance.TradesPerDay

 

 

Examples

protected override void OnBarUpdate()
{
    // Print out the average number of trades per day of all trades

    Print("Average # bars per trade is: " + Performance.AllTrades.TradesPerformance.TradesPerDay);
}