Measure the time to recover from a drawdown

Recovering from a drawdown means regaining the earlier equity high. State whether the duration runs from the peak or from the trough. Specify whether you count observations, elapsed time or trading sessions.

Trace one completed episode

The chart starts with 100, 120, 90, 105 and 130. The peak before the decline is observation 2, the trough is 3 and recovery occurs at 5. Peak-to-recovery takes 3 periods, and trough-to-recovery takes 2. At observation 4 the ongoing episode has lasted 2 periods and its final length is unknown.

Equity and drawdown by observation StockSharp JS-Charts

Loading calculator…

Move the slider to point 4 and then to 5. The calculator treats reaching the previous peak as recovery. When equity repeats an equal high before the decline it uses the most recent high. “Longest completed recovery” counts from that high and only considers episodes that finished within the selected sample.

If a real history ends underwater, report this as an open episode with the elapsed time so far. For comparisons across assets or strategies, keep time units consistent and report both severity and duration. A shallow loss that persists for months differs from a deeper loss that recovers in days. Calculate the maximum drawdown.