NinjaScript > Language Reference > Strategy > TradeCollection > TradesPerformance >

MaxTime2Recover

Print this Topic Previous pageReturn to chapter overviewNext page

Definition
Returns the maximum time to recover from a draw down.
 

Property Value

A TimeSpan value that represents the maximum time to recover from a draw down.

 

Syntax
<TradeCollection>.TradesPerformance.MaxTime2Recover

 

 

Examples

protected override void OnBarUpdate()
{
    // Print out the maximum time to recover from a draw down

    Print("Average # bars per trade is: " + Performance.AllTrades.TradesPerformance.MaxTime2Recover);
}