Register
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

The calculator above takes a list of account or strategy values in date order and finds the deepest fall from a peak, the gain needed to climb back, how long the fall took and how long the recovery took. This page explains each of those figures, works through the calculator's own sample, shows why the same trades in a different order can give a very different drawdown, and how traders use drawdown to size strategies and set limits before they trade. Drawdown describes what a record went through; it does not predict the next fall.

What the max drawdown calculator does

PartWhat it does
InputAccount or strategy values in date order: daily, weekly or per trade
Maximum drawdownThe largest fall from a running peak, in per cent and in rupees
Gain needed to recoverThe rise from the low that would bring the value back to the peak
Peak to lowHow many periods the fall took
RecoveryHow many periods it took to reach a new high, or "Not yet" with the current drawdown
Recovery tableThe gain needed after falls of 10% to 50%

A short history of drawdown as a measure

Drawdown came into wide use with commodity trading advisers in the United States in the 1970s and 1980s. Their clients judged them less by average returns than by the worst fall an account had suffered, because that was the number that made clients withdraw their money. Industry newsletters began publishing drawdowns beside returns, and ratios that compared the two followed.1

In 1987 Peter Martin proposed the Ulcer Index, which measures the depth and length of all drawdowns rather than only the worst one.2 In 1991 Terry Young introduced the Calmar ratio, named after his California Managed Accounts Reports newsletter: the annual return divided by the maximum drawdown.3 Similar measures, the Sterling ratio and the MAR ratio, compare returns with average or worst drawdowns in slightly different ways.

Researchers later worked out how large a maximum drawdown to expect from a strategy with a given return and volatility. Malik Magdon-Ismail and Amir Atiya showed in 2004 that the expected worst fall grows with the length of the record, so a longer track record almost always contains a deeper drawdown than a shorter one.4 In 2005 Alexei Chekhlov, Stanislav Uryasev and Michael Zabarankin proposed conditional drawdown, the average of the worst drawdowns, as a measure for portfolio construction.5

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.
Formula
Drawdown = (running peak − current value) ÷ running peak

The calculator also records where the peak and the low were, so it can tell you how long the fall lasted, and it searches forward from the low for the first value at or above the old peak to find the recovery.

A worked example: the calculator's sample

The calculator opens with eight values: ₹5,00,000, ₹5,20,000, ₹4,98,000, ₹4,70,000, ₹5,05,000, ₹5,40,000, ₹5,15,000 and ₹5,52,000.

ValueAmountRunning peakDrawdown
1₹5,00,000₹5,00,0000%
2₹5,20,000₹5,20,0000%
3₹4,98,000₹5,20,0004.2%
4₹4,70,000₹5,20,0009.6%
5₹5,05,000₹5,20,0002.9%
6₹5,40,000₹5,40,0000%
7₹5,15,000₹5,40,0004.6%
8₹5,52,000₹5,52,0000%

The calculator reports:

FigureResult
Maximum drawdown−9.62%, ₹50,000, from ₹5,20,000 to ₹4,70,000
Gain needed to recover10.64%
Peak to low2 periods, value 2 to value 4
Recovery2 periods, new high at value 6

The account ended 10.4% above where it started, but at one point it was almost 10% below its best. A trader who started at value 2 would have seen only the fall for three periods.

A worked example by hand

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. Note that the low of ₹9.6 lakh is below the starting value: a drawdown is measured from the peak, not from where you began, and a trader who added money at ₹12 lakh would have lost a fifth of it.

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%
25%33.3%
30%42.9%
40%66.7%
50%100.0%
Formula
Gain needed = drawdown ÷ (1 − drawdown)

In the example above, the account fell 20% to ₹9.6 lakh and needed a 25% gain to get back to ₹12 lakh. The gap widens quickly: a 50% fall needs a doubling. This is why traders who survive for years tend to care more about limiting drawdowns than about reaching for higher 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.
  • Current drawdown: how far below its best the record is today, which the calculator shows when the account has not yet recovered.

At a steady 1.5% a month, a 20% drawdown takes about 15 months to recover. At 2% a month, a 30% drawdown takes about 18 months and a 40% drawdown about 26. Real returns are not steady, so these are best cases. 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.

Why the order of trades matters

The same trades in a different order can give a very different drawdown. Take ten trades on a ₹10 lakh account: two wins of ₹30,000, three losses of ₹40,000, four wins of ₹25,000 and one win of ₹20,000. Whatever the order, the account ends at ₹10.6 lakh.

OrderWorst pointMaximum drawdown
Both ₹30,000 wins first, then the three losses together, then the other wins₹9.4 lakh after a peak of ₹10.6 lakh11.3%
Losses spread between wins₹9.75 lakh after a peak of ₹10.3 lakh5.3%

The losses that come together do the damage. A backtest shows only one order of its trades, the one that happened. Shuffling the trades many times and measuring each drawdown, which is what Monte Carlo simulation does, shows how much deeper the worst case could have been with the same trades.

A worked example: a smooth record with one bad week

A ₹5 lakh account runs an option-selling strategy that earns ₹6,000 in each of nineteen weeks and loses ₹90,000 in the twentieth.

MeasureValue
Peak, after nineteen weeks₹6,14,000
Value after the bad week₹5,24,000
Maximum drawdown14.7%
Result over twenty weeks+₹24,000
Winning weeks19 of 20

For nineteen weeks the record showed no drawdown at all. A trader who judged the strategy on those weeks would have seen a perfect curve. The one loss took back fifteen weeks of gains. Strategies that sell options, or that average down, often have records like this: drawdown appears rarely and all at once. When you read such a record, look at what the worst week could have been, not only at what it was.

The Calmar ratio and other drawdown measures

Formula
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, which measures risk by volatility, the Calmar ratio focuses on the worst decline. It is usually measured over three years; a shorter record gives a higher figure, because it has had less time to meet a deep drawdown.

MeasureWhat it uses
Calmar ratioAnnual return ÷ maximum drawdown, usually over three years
Sterling ratioAnnual return ÷ average of the worst yearly drawdowns
MAR ratioReturn since the start ÷ maximum drawdown since the start
Ulcer IndexThe square root of the average squared drawdown, across every period
Conditional drawdownThe average of the worst drawdowns, such as the worst 5%

The Ulcer Index of the calculator's sample is about 4.2%: it counts the 4.2% and 4.6% dips as well as the worst one, so it rewards a record that recovers quickly and penalises one that stays underwater.

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, as the example above shows.
  • Length of record. The longer a record runs, the deeper its worst drawdown tends to be. A two-year backtest has had less time to meet a bad stretch than ten years of live trading will.
  • Costs and fills. Backtests often understate costs and slippage, which deepen drawdowns.
  • Events. The worst drawdown is always ahead of you, not behind you. Many traders plan for a live drawdown one and a half to two times the backtest's.
  • Selection. If you tested many versions of a rule and kept the one with the smallest drawdown, part of that small drawdown is luck. The version you kept was the one whose losses happened to fall on days that suited it.

None of this makes a backtest drawdown useless. It is the floor of what to expect, not the ceiling. Read it together with the longest losing streak and the worst single day, and treat any strategy whose backtest drawdown is already close to your limit as too large for your account.

A worked example: choosing between two strategies

Two strategies were backtested on the same ₹10 lakh over the same three years.

MeasureStrategy AStrategy B
Average yearly return24%15%
Maximum drawdown32%12%
Longest time underwater11 months4 months
Calmar ratio0.751.25

Strategy A made more money, but at its worst it was ₹3.2 lakh below its peak and spent most of a year below it. Strategy B made less but never fell more than ₹1.2 lakh and recovered within four months. Run at the same drawdown, B can carry more size: scaled up by 32 ÷ 12, about 2.7 times, B's drawdown would match A's and its return would be roughly 40% a year before the extra costs of trading larger. That is what a higher Calmar ratio means in practice. Whether B can actually be scaled that far depends on liquidity, margin and whether its drawdown would really stay in proportion, which a Forward test at the larger size can show.

Drawdown and leverage

Futures and options are traded on margin, so the money at risk can be much larger than the money in the account. A drawdown measured against the account is what matters, not one measured against the margin blocked for a trade.

Take an account of ₹5 lakh running a Nifty option strategy. A bad expiry day that moves the position against you by ₹75,000 is a 15% drawdown on the account, whatever the margin blocked was. If the same trader runs three such strategies at once and the same day hits all of them, the drawdown is 45%, which needs an 82% gain to recover. Leverage does not change the arithmetic of drawdown; it changes how quickly a single day can reach the deep end of the recovery table.

Two habits help. Measure every strategy's drawdown in rupees against the capital you would really lose, and add up the worst cases of strategies that could lose on the same day. Strategies that sell options on the same index before the same expiry tend to lose together.

Drawdown in Indian option strategies

Some features of the Indian market shape the drawdowns of option strategies in particular:

  • Expiry days. Weekly index options lose their remaining time value on expiry day, and sharp moves late in the day can turn a small gain into a large loss within an hour.
  • Gaps. Positions held overnight meet the next morning's opening price, which can jump past any stop. Global markets, results and policy announcements all cause gaps.
  • Event days. The Union Budget, RBI policy days and election results produce moves larger than a strategy's normal days.
  • Rule changes. Lot sizes, expiry days and taxes have changed several times since 2024, so a backtest from earlier years may show drawdowns in rupees that do not compare with today's.

A drawdown table from a backtest is more useful when you can see which days caused the worst falls. If they cluster on expiry days or event days, a rule that avoids those days, or trades smaller on them, may matter more than any change to the entry.

What drawdown feels like, and why plans fail

A drawdown on a backtest chart takes a few seconds to look at. The same drawdown in your own account takes weeks or months to live through, and it arrives one day at a time without telling you how deep it will go. That is why traders who accept a 20% drawdown in a backtest often stop a strategy at 10% in real life, and then miss the recovery.

Writing the rules down before trading helps: the drawdown at which you will reduce size, the drawdown at which you will stop, and what must happen before you start again. A rule set in advance is easier to follow than a decision made while losing. A performance report that shows the live drawdown beside the backtest's helps too, because it answers the question every trader asks in a drawdown: is this normal for this strategy, or is something broken?

Drawdown and the size of each trade

The bigger the share of the account risked on each trade, the deeper the drawdowns, and not in a straight line. A strategy that risks 1% of the account on each trade needs ten losing trades in a row to fall about 10%. The same strategy risking 3% a trade falls about 26% after the same ten losses, and needs a 35% gain to recover.

Formulas such as the Kelly criterion work out the share of capital that grows an account fastest in theory. In practice the full Kelly size produces drawdowns that very few traders can sit through, which is why traders who use it bet a half or a quarter of what it suggests. Whatever method you use, check the drawdown it would have produced before you adopt it.

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.

Worked through: a strategy trades two lots and showed a 12% drawdown on a ₹10 lakh account in its backtest. You plan for 1.5 times that, 18%, or ₹1.8 lakh. If the most you are willing to lose from a peak is ₹1.2 lakh, the size that fits is two lots × (1.2 ÷ 1.8), about 1.3 lots, which rounds down to one lot. Sizing down to fit the drawdown you can live with is easier than sitting through one you cannot.

The drawdown of several strategies together

Running several strategies at once can make the account's drawdown smaller than any one strategy's, if they lose at different times. A trend-following rule on futures and an option-selling rule on the index often do: one tends to lose in quiet, range-bound weeks and the other in sharp moves. Combined, the account's equity curve is smoother than either.

The opposite happens when the strategies are alike. Three short straddles on Nifty with slightly different entry times are close to one large straddle, and their worst days arrive together. To see which case you are in, paste the combined daily account values into the calculator, not each strategy's separately, and compare the account's drawdown with the sum of the strategies' drawdowns. If they are nearly the same, the strategies are not spreading your risk.

Questions to ask about any drawdown figure

  • Over what period? A drawdown from one good year says little about a bad one.
  • Measured on what values? Daily, weekly or per trade give different answers for the same record.
  • After costs? Brokerage, taxes and slippage deepen every drawdown.
  • At what size? A drawdown in per cent at one lot does not stay the same at ten lots if fills get worse.
  • Live or tested? A live drawdown includes everything a backtest leaves out.
  • What caused the worst fall? One event day, a run of small losses, or a market that stopped behaving the way the rules expect?

Drawdown rules for live trading

Decide these rules before trading, not during a drawdown.

  • A daily loss limit for the account refuses new orders once the day's loss reaches it, so a bad morning does not become a bad day.
  • An [MTM stop loss](/mtm-stop-loss) for the whole account, called Smart Exit in QuantPower, squares off every position and stops the algos when the day's loss reaches the amount you set.
  • A strategy limit: pause a strategy if its drawdown exceeds its expected worst case by a set margin, then review it before switching it on again.
  • An account limit: reduce overall size after a set drawdown, such as 10% from the peak, and restore it only after a recovery.
  • A kill switch stops a segment until its next session when you need to stop everything at once.

Drawdown in QuantPower

  • In backtests. Every backtesting report shows the maximum drawdown with the dates it started and ended, the longest losing streak and the results by month. Option strategy backtests also hold back the last 30% of days and compare them with the rest.
  • For each live algo. Each algo has its own live performance report beside its backtest, so you can compare its live drawdown with the one you tested.
  • For the account. The P&L history shows realised profit and loss by day and by month, with a CSV download you can paste into this calculator.
  • Limits. The daily loss limit, Smart Exit and the kill switch cover the whole account across every connected broker. Forward test keeps its own separate book, so a strategy's drawdown can be watched on live prices before real money is used.
  • On the chart. The Ulcer Index is one of the chart's indicators, so you can see drawdown-style risk on any price series.

The calculator, charts and strategy builder are free. A backtest costs 2 tokens after 10 free each week, a Forward test 100 tokens per algo per 28 days, and a live algo 200 tokens per 28 days (1 token = ₹1, GST extra).

How to use the calculator, step by step

  1. Export your values: daily account values from your broker's P&L statement, a backtest's equity curve or QuantPower's P&L history.
  2. Keep them in date order, oldest first. The calculator reads them in the order given.
  3. Use account values, not daily profits. If you have daily P&L, add it to the starting capital day by day first.
  4. Leave out deposits and withdrawals, or adjust for them. A withdrawal looks like a loss and a deposit like a gain.
  5. Paste the values and read the maximum drawdown, the gain needed and the recovery.
  6. Run it again on part of the record, such as the last year, to see whether drawdowns are getting deeper or shallower.

For a backtest, paste the equity curve at the frequency the strategy trades: daily for intraday strategies, weekly for positional ones. Compare the result with the drawdown the backtest report shows; they should match, and if they do not, check the values for missing days or deposits.

Common mistakes

  • Measuring from the starting value. Drawdown is measured from the highest point so far, not from where you began.
  • Using monthly values for a daily strategy. Monthly closes hide falls that happened and recovered within the month.
  • Counting deposits as gains. They hide a drawdown that really happened.
  • Comparing drawdowns over different lengths of record. A one-year record and a five-year record are not alike.
  • Treating the backtest drawdown as the worst case. It is the worst case so far.
  • Setting limits during a drawdown. Limits chosen in the middle of a loss are chosen by fear or hope, not by plan.

Where drawdown measurement is going

Drawdown is moving from an after-the-fact report to a live control. Platforms now show each strategy's drawdown as it happens, beside the backtest it came from, and let a trader set account-wide limits that act on their own. The other change is in testing: shuffling trades and simulating thousands of paths is now quick enough to do on every strategy, so the question has shifted from "what was the worst drawdown?" to "what range of drawdowns should I expect?". The calculation underneath stays the one on this page.

Start with 500 free tokens

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

Frequently asked questions

Does a drawdown count if the account later recovers?

Yes. The maximum drawdown is the worst fall at any point in the record, whether or not the account later made a new high. The calculator shows the recovery separately.

Should I use daily or weekly values?

Use the most frequent values you have. Weekly values miss falls that happened and recovered within a week, so they give a smaller drawdown than daily values for the same record.

How do I include deposits and withdrawals?

Either use a record without them, or adjust each value by the money added or taken out since the start. Otherwise a withdrawal shows up as a fall and a deposit as a gain.

What does "Recovery: Not yet" mean?

The record has not climbed back to the peak before its worst fall. The calculator then shows the current drawdown, how far below its best the record is now.

Why is my live drawdown deeper than my backtest's?

A backtest shows one order of trades over a limited period and often understates costs. A longer live record also has more time to meet a bad stretch.

Can QuantPower stop trading at a drawdown I set?

Yes, for the day. Smart Exit squares off every position and stops the algos when the day's loss reaches your amount, and the daily loss limit refuses new orders once it is reached. Longer limits, such as pausing a strategy after a 10% fall from its peak, are decisions you make from its performance report.

References

  1. Jack D. Schwager, *Schwager on Futures: Managed Trading, Myths and Truths*, Wiley (1996), on how managed futures accounts are judged by drawdown
  2. Peter G. Martin and Byron B. McCann, *The Investor's Guide to Fidelity Funds* (1989), introducing the Ulcer Index first described by Martin in 1987
  3. Terry W. Young, "Calmar Ratio: A Smoother Tool", *Futures* magazine (October 1991)
  4. Malik Magdon-Ismail and Amir F. Atiya, "Maximum Drawdown", *Risk* magazine (October 2004)
  5. Alexei Chekhlov, Stanislav Uryasev and Michael Zabarankin, "Drawdown Measure in Portfolio Optimization", *International Journal of Theoretical and Applied Finance*, 8(1), 13–58 (2005)
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.