NinjaScript > Language Reference > Strategy > TradesPerformanceValues >

DrawDown

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns the draw down of the collection.
 

Property Value

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

 

Syntax
<TradeCollection>.TradesPerformance.<TradesPerformanceValues>.DrawDown

 

 

Examples

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

    Print("Draw down of all trades is: " + Performance.AllTrades.TradesPerformance.Currency.DrawDown);
}