Home › Guides › Drawdown

WHY BOTS FAILFREENO ACCOUNTAUTOMATED TRADE BOTSDrawdownThe arithmetic of how bots failEDUCATION ONLY | NO SIGNALSEXAMPLE NUMBERS ARE LABELLEDAUTOMATED TRADE BOTSautomatedtradebots.com
A free page on drawdown. Education only, with example numbers labelled.
WHY BOTS FAIL

Drawdown

Short answer

Drawdown is the fall in account value from a previous peak. Maximum drawdown is the largest peak-to-trough fall in the whole record, and its duration is how long it took to climb back.

Drawdown is how far an account has fallen from its highest point. Its size and its length decide whether anyone is still running the strategy when it recovers, and the math of recovery is lopsided.

The page explains the idea in plain words, works through the arithmetic with a table, and shows how it hits grid, martingale and DCA bots, then tells you what to check before you run one.

  • A worked example with real arithmetic
  • How it hits grid, martingale and DCA bots
  • How to check for it before you run a bot
  • No advice, no signals, no profit promises

Last reviewed 28 October 2026. Education only, not advice.

Free, no account Runs in your browser Worked numbers shown Not advice Examples labelled

Ready to go further

Next: size a drawdown against your own account

The drawdown calculator takes a series of balances or a loss figure and shows the depth, the gain needed to recover and how long that takes at your return.

Reading time6 minutes
Worked exampleExact arithmetic
Tools linked2 on this page
Reviewed28 Oct 2026

What is included

  • What it is, in plain words
  • The formula or mechanism, with exact arithmetic
  • How it hits grid, martingale and DCA bots
  • A check you can run before you switch a bot on

Who it is for

  • People who run or plan to run a trading bot
  • Anyone reading a backtest or a bot sales page
  • Readers who want the numbers, not the pitch
  • Not advice, and not a signal service
Gain needed to get back to the peak after a loss (exact)0%100%200%300%400%+10%20%30%40%50%60%70%80%90%25%100%400%Loss from the peak (the curve is cut off at 400 percent; at 90 percent the gain needed is 900 percent)Gain needed = loss / (100 - loss). Calculated by us on 27 Oct 2026, exact.
The picture for this page. Example numbers are made up unless the page says they were calculated.

Key facts

  • Drawdown is the fall in account value from a previous peak. Maximum drawdown is the largest peak-to-trough fall in the whole record, and its duration is how long it took to climb back.
  • Recovery is lopsided: a 50 percent loss needs a 100 percent gain to get back, and a 90 percent loss needs 900 percent (calculated by us on 27 Oct 2026, exact).
  • Drawdown limits matter more than the average return, because a deep one ends the strategy, the account or the person running it before the average arrives.
  • Martingale and grid equity curves climb smoothly and then drop sharply, so a short or lucky backtest can show a tiny drawdown that is not representative.
  • A backtest drawdown should say whether margin, floating losses and costs were included. Many only count closed trades.

What drawdown is

Take the highest value the account has reached so far, the peak. Drawdown at any moment is how far below that peak the account sits now.

Drawdown = (peak value - current value) / peak value x 100
Maximum drawdown = the largest drawdown reached between a peak and the lowest point after it

Three related ideas are worth separating:

  • Depth. How big the fall was, in percent. A 35 percent maximum drawdown means that at one point the account was 35 percent below its prior high.
  • Duration. How long it took to fall, and how long to get back above the old peak. Two strategies with the same depth can differ by years in duration.
  • Frequency. How often drawdowns of a given depth occur, which a single maximum figure cannot show.

Drawdown can be measured on closed trades only, or on equity including open floating losses. The second is what the account really did. The first can hide a position that went deep underwater and then recovered.

The asymmetry of recovery

A loss is measured against a larger number than the gain that repairs it. Lose 50 percent of 100 and you hold 50. To get back to 100 you must make 50 on 50, which is 100 percent. The formula is exact:

Gain needed = loss / (100 - loss) x 100
Loss from the peakValue left of each $100Gain needed to recover
10%$9011.1%
20%$8025.0%
30%$7042.9%
40%$6066.7%
50%$50100.0%
60%$40150.0%
70%$30233.3%
80%$20400.0%
90%$10900.0%

Calculated by us on 27 Oct 2026, exact. Up to about 20 percent the table is fairly kind. Past 50 percent the gain needed rises steeply, and by 90 percent it needs the account to grow tenfold. Nobody plans for a 90 percent loss, but this is why a limit on drawdown is usually set well before it. The deeper the hole, the less likely a realistic strategy is to climb out.

Why it matters more than the average return

An average return says where the strategy ends up over a very long time if it survives. Drawdown says whether you survive the trip. Three things get in the way:

  • Margin and stop out. A deep drawdown on a leveraged account can reach the margin call before it ever recovers.
  • Behaviour. People switch off bots in drawdown. A strategy that needs a 40 percent hole to be endured is only as good as the willingness to endure it.
  • The arithmetic above. Recovery needs a bigger gain than the loss.

A worked example: the smooth curve and the one big drop

This is a made-up bot of the martingale or grid kind. It starts at $1,000 and makes 0.4 percent on each step for 60 steps in a row. That is the picture a short backtest would show: a smooth line up. Then one event, a losing ladder, takes 40 percent off the account in one step. After that it carries on at 0.4 percent per step.

Point in the recordAccount valueDrawdown from the peak
Start$1,0000%
After 60 steps (the peak)$1,2710%
After the one big loss (the trough)$76240%
Steps of 0.4 percent needed to get back to the peak128 stepsGain needed 66.7%

Calculated by us on 27 Oct 2026, exact for these made-up inputs. The peak is $1,000 x 1.004^60 = $1,271. A 40 percent loss leaves $762. To recover, the account must gain 66.7 percent, and at 0.4 percent a step that takes 128 steps, more than twice as long as the 60 steps it took to build the peak. The drawdown lasts 129 steps from the peak to the new high. The 60 small wins added $271. The one big loss took away $508, about 1.9 times as much.

Equity of the made-up bot: 60 small wins, one 40 percent loss, then a long climb back$600$800$1,000$1,200$1,400050100150200Previous peak $1,271Trough $762Back at step 189StepsMade-up equity curve, +0.4 percent per step except one 40 percent loss. Exact arithmetic.
Before the drop, the record had a drawdown of nothing. A short test that ended at step 60 would have reported exactly that.

How it hits bots

  • Martingale bots win small and often and lose rarely and hugely. The equity curve is the one above. Their drawdown figure depends heavily on whether the test happened to include the rare event. See martingale.
  • Grid bots hold a growing stack in a trend. Closed profit looks steady while the floating loss on the stack grows. A drawdown that counts only closed trades does not see it.
  • DCA bots buy as price falls, so drawdown on the whole position can reach very deep levels before the average cost helps, and there is no recovery if the asset does not come back.
  • EAs are often reported with a maximum drawdown that came from one test period. Different periods can produce a very different number.

Prop-firm style daily loss rules

Some evaluation or funded-account programmes use drawdown limits as rules: for example, a limit on loss in one day and a limit on total loss from the starting balance. The details differ by programme, so read yours. In general terms, two things catch bots out. The limit is often measured on equity including floating losses, not only on closed trades. And a breach usually ends the account on the spot, even if the position would have recovered later. Take a made-up $10,000 account with a 5 percent daily limit, which is $500. A ladder that is $600 under water at some point in the day has breached it, whatever it closes at that night. A bot that wins small and holds large floating losses is the kind of bot that this kind of rule penalises.

How to read a backtest drawdown

  • Depth. Is the maximum drawdown measured on equity or on closed trades? Is it a percent of the peak or of the starting balance?
  • Length. How long did the longest drawdown last, peak to new high? Could you run the bot for that long?
  • Margin. Did the test include margin, leverage and the stop out? A test with unlimited margin can survive a hole that a real account would not.
  • Costs. Spread, commission and slippage deepen every drawdown.
  • How long the test ran. A short record may have missed the event. Run a Monte Carlo simulation on the trade list to see deeper drawdowns the shuffled order could have produced.
  • Compare with a forward test. Backtest drawdowns are usually shallower than live ones.

What it does not tell you

The maximum drawdown in a record is the worst that happened, not the worst that can happen. A longer record, or a different market, can show a deeper one. It also says nothing about whether the strategy has an edge: a flat line has no drawdown and no profit. Use it alongside expectancy and the margin limits.

FAQ

Frequently Asked Questions

What is maximum drawdown?

The largest fall from a peak to the lowest point after it, over the whole record. It is usually shown as a percent of the peak. It is the worst that happened in the data, not the worst that can happen.

Why does a 50 percent loss need a 100 percent gain?

Because the gain is measured on a smaller balance. Losing half of 100 leaves 50, and doubling 50 is the only way back to 100. The formula is loss / (100 - loss).

Is a small drawdown a sign of a good bot?

Not on its own. A small drawdown over a short test can come from a strategy that loses rarely and hugely, like a martingale. Check how long the test was, whether floating losses and margin were included, and what the worst case could be.

What is the difference between drawdown depth and duration?

Depth is how far the account fell. Duration is how long it took to climb back above the old peak. A shallow but long drawdown can be as hard to live with as a deep one.

Do prop-firm loss limits use drawdown?

Many programmes do, as a daily limit, a total limit, or both, and the way they are measured differs. Read the rules of yours, especially whether floating losses count.

Are the numbers on this page real?

Example numbers are made up to show how the maths works, and the page says so. A figure only counts as exact when the page says it was calculated on a stated date. Nothing you enter in a calculator leaves your browser.

Can I use this to decide whether to run a bot?

It can show whether a bot's numbers hold together and how much an account can lose. It cannot say what the market will do, and it is not advice. Use it to ask better questions, then read the terms of your own broker or exchange.

Is this financial advice?

No. It explains a measurement in general terms. The recovery table is exact arithmetic and the bot in the example is made up.

Know the Risk Before You Run It

Free calculators and guides, added every week. Leave your details and we will email you when new ones go up.

Trading carries a risk of loss