AverageEtd

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

AverageEtd

Previous page Return to chapter overview Next page

Definition

Returns the average ETD (end trade draw down) of the collection.
 

Property Value

A double value that represents the average ETD of the collection.

 

Syntax
<TradeCollection>.TradesPerformance.<TradesPerformanceValues>.AvgEtd

 

 

 

Examples

ns


protected override void OnBarUpdate()
{
    // Print out the average ETD of all trades in currency
    Print("Average ETD of all trades is: " + SystemPerformance.AllTrades.TradesPerformance.Currency.AvgEtd);
}