TradesPerDay

<< Click to Display Table of Contents >>

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

TradesPerDay

Previous page Return to chapter overview Next 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

ns


protected override void OnBarUpdate()
{
    // Print out the average number of trades per day of all trades
    Print("Average # of trades per day is: " + SystemPerformance.AllTrades.TradesPerformance.TradesPerDay);
}