AverageBarsInTrade

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

AverageBarsInTrade

Return to chapter overview

Definition

Returns the average number of bars per trade.
 

Property Value

A double value that represents the average number of bars per trade.

 

Syntax
<TradeCollection>.TradesPerformance.AverageBarsInTrade

 

 

 

Examples

ns

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