Free trial
Menu
Free toolNo sign-up

Analyze Historical Peak-to-Trough Decline for Algos

Maximum drawdown is the largest fall in a strategy's or account's value from a peak to a later low, before a new peak is reached. It is the clearest measure of the pain a strategy put its trader through, and often the number that decides whether a trader sticks with a strategy or abandons it.

Maximum drawdown
−9.62%Maximum drawdown

₹50,000, from ₹5,20,000 to ₹4,70,000

Gain needed to recover10.64%From the low back to the peak
Peak to low2 periodsValue 2 to value 4
Recovery2 periodsNew high at value 6
Gain needed to recover from a drawdown
DrawdownGain needed
−10%11.1%
−20%25.0%
−25%33.3%
−30%42.9%
−40%66.7%
−50%100.0%

Daily or weekly closing values give the most accurate figure. A backtest drawdown is usually smaller than the one met in live trading.

See a strategy’s worst drawdown before it trades live.See backtesting

This guide explains how to calculate maximum drawdown, why recovering from a drawdown is harder than it looks, related measures such as the Calmar ratio and time to recovery, and how to use drawdown to size and judge strategies.

How maximum drawdown is calculated

  1. Track the running peak of the equity curve: the highest value so far.
  2. At each point, calculate the drawdown: (running peak − current value) ÷ running peak.
  3. The maximum drawdown is the largest of these drawdowns.

Example. An account grows from ₹10 lakh to ₹12 lakh, falls to ₹9.6 lakh, rises to a new peak of ₹12.6 lakh, then falls to ₹11.34 lakh.

PointValueRunning peakDrawdown
Start₹10.00 lakh₹10.00 lakh0%
Peak 1₹12.00 lakh₹12.00 lakh0%
Low 1₹9.60 lakh₹12.00 lakh20%
Peak 2₹12.60 lakh₹12.60 lakh0%
Low 2₹11.34 lakh₹12.60 lakh10%

The maximum drawdown is 20%, or ₹2.4 lakh, even though the account ended above where it started.

Recovering from a drawdown

A drawdown of a given percentage needs a larger percentage gain to recover, because the recovery starts from a smaller base:

DrawdownGain needed to recover
10%11.1%
20%25.0%
30%42.9%
40%66.7%
50%100.0%

In the example, the account fell 20% to ₹9.6 lakh and needed a 25% gain to get back to ₹12 lakh. This is why limiting drawdowns matters more than chasing returns.

Time to recovery

The depth of a drawdown is only half the story. How long it lasts matters too. A 15% drawdown that recovers in a month is very different from one that lasts two years. Track:

  • Time underwater: from the peak to the point the account regains it.
  • Longest drawdown: the longest time spent below a previous peak.

Many traders abandon good strategies during long drawdowns. Knowing the historical length in advance helps you stay with the plan, or decide in advance when a drawdown is long enough to stop.

The Calmar ratio

The Calmar ratio compares return with drawdown:

Calmar ratio = annual return ÷ maximum drawdown

A strategy returning 18% a year with a 20% maximum drawdown has a Calmar ratio of 0.9. Higher is better. Unlike the Sharpe ratio, it focuses on the worst decline rather than on volatility.

Why the backtest drawdown understates real risk

  • One path. The backtest shows the drawdown of one sequence of trades. A different order of the same trades could produce a deeper one. Monte Carlo simulation estimates the range.
  • Future events. The worst drawdown is always ahead of you, not behind you. A rule of thumb many traders use is to plan for a live drawdown larger than the backtest's.
  • Optimism. Backtests often understate costs and slippage, which deepen drawdowns.

Using drawdown to size a strategy

If you can tolerate a 15% drawdown and a strategy's realistic worst-case drawdown is 30% at its current size, halve the size. Drawdown scales roughly with position size, so this is one of the most direct ways to fit a strategy to your risk tolerance. The position size calculator helps with the per-trade side.

Drawdown rules for live trading

  • Daily limit: stop trading for the day after a set loss, with an MTM stop loss.
  • Strategy limit: pause a strategy if its drawdown exceeds its expected worst case by a set margin, then review it.
  • Account limit: reduce overall size after a set drawdown and restore it after recovery.

Decide these rules before trading, not during a drawdown.

Where to find your drawdown

QuantPower's backtesting engine shows the results of each strategy over past data, and live strategies show their P&L as they run. Our guide on how to backtest trading strategies explains which other metrics to read alongside drawdown.

Start your free trial

Connect your broker, build a strategy and test it on paper before a single live order goes out.

Frequently asked questions

What is maximum drawdown?

The largest percentage fall from a peak to a later low, before a new peak.

What is a good maximum drawdown?

It depends on the strategy and your tolerance. Many traders aim to keep realistic drawdowns below 15% to 25%. Compare drawdown with return using the Calmar ratio.

How long does it take to recover from a drawdown?

It depends on the depth and the strategy's returns. A 20% drawdown needs a 25% gain to recover; at 1.5% a month, that takes about 15 months.

Why is my live drawdown worse than my backtest?

Backtests show one path and often understate costs. Live markets can also produce events not seen in the backtest period.

Sources

  • Young, T. W. (1991). Calmar Ratio: A Smoother Tool. Futures magazine
  • Magdon-Ismail, M. and Atiya, A. F. (2004). Maximum Drawdown. Risk magazine
The examples on this page are hypothetical. Past and backtested performance does not guarantee future results. This tool and guide are for education and are not investment advice.