NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

AvgEtd

Print this Topic Previous pageReturn to chapter overviewNext 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

protected override void OnBarUpdate()
{
    // Print out the average ETD of all trades in currency

    Print("Average ETD of all trades is: " + Performance.AllTrades.TradesPerformance.Currency.AvgEtd);
}