TL;DR

Maximum drawdown measures the largest peak-to-trough drop your strategy's equity curve ever takes, and a 50% drawdown needs a 100% gain just to break even, which is why professional algo traders size positions to keep drawdown under 20-25% rather than chasing the highest raw return.

Key Takeaways

  • 1.Max drawdown is calculated as (trough value minus peak value) divided by peak value, expressed as a percentage.
  • 2.Recovering from a drawdown gets exponentially harder: a 20% drawdown needs a 25% gain to recover, a 50% drawdown needs 100%, and an 80% drawdown needs 400%.
  • 3.TradingView's Strategy Tester reports max equity drawdown automatically under the Performance Summary tab, both in percentage and account currency.
  • 4.Cutting position size in half roughly halves your expected drawdown but also roughly halves your expected return, since both scale with exposure.
  • 5.Most professional algo desks target a maximum drawdown ceiling of 20-25% of capital, not the highest possible backtested return.

A drawdown calculator measures the largest drop your account or strategy takes from a peak to the lowest point that follows, before a new peak is reached. It matters more than total return because a strategy that returns 40% a year but drops 60% along the way is far riskier, and far harder to stick with, than one that returns 25% a year and never drops more than 15%.

Every algo trader eventually asks the same question after a rough month: how do I know if this drawdown is normal or a sign the strategy broke. A proper drawdown calculation, run against your own backtest or live equity curve, is the tool that answers that question with a number instead of a gut feeling. I've used this exact math to evaluate three different bot strategies on 3Commas and Cryptohopper over the past year, and it's the single metric that ended up mattering more than win rate.

This guide walks through the exact formula, why the recovery math matters more than the drawdown percentage itself, how to pull the number straight out of TradingView's Strategy Tester if you don't want to build anything, and how to build a simple spreadsheet version if you do. By the end you'll be able to look at any equity curve, backtested or live, and know within a minute whether its risk profile is one you can actually stick with.

What is a good maximum drawdown for algo trading?

A good maximum drawdown for most retail algo strategies is under 20-25% of account capital. Institutional systematic funds often cap drawdown even tighter, closer to 10-15%, because a large drawdown forces a much bigger percentage gain just to recover, and investors pull capital long before that happens.

There's no single 'correct' number because it depends on your time horizon and risk tolerance, but any strategy backtesting above a 35-40% max drawdown should be treated as high-risk regardless of how good its total return looks on paper. A strategy's Sharpe ratio and CAGR can both look attractive while its drawdown profile quietly makes it unownable in real money.

Backtested drawdown is a floor, not a ceiling

Live drawdown is almost always worse than backtested drawdown because of slippage, fees, and market regimes the backtest period never saw. Treat your backtest's max drawdown as the best case, not the expected case.

A strategy with a backtested max drawdown above 35-40% should be assumed capable of a worse drawdown in live trading, since backtests systematically underestimate tail risk.

It helps to translate the percentage into a dollar figure you'd actually have to watch disappear. On a $25,000 account, a 20% drawdown is $5,000; a 35% drawdown is $8,750; a 50% drawdown is $12,500. Most traders who say they can tolerate a 40-50% drawdown in the abstract discover, the first time it actually happens to a five-figure account, that the real number feels very different from the percentage on a spreadsheet.

How do you calculate max drawdown for a trading strategy?

Max drawdown is calculated as: (Trough Value minus Peak Value) divided by Peak Value, expressed as a positive percentage. You track your equity curve, note the highest value reached so far (the running peak), and measure how far the account falls below that peak before setting a new one.

Peak valueTrough valueDrawdown %
$10,000$9,2008.0%
$10,000$8,00020.0%
$10,000$6,50035.0%
$10,000$5,00050.0%

The part most traders skip is recovery math. Because percentage losses and gains aren't symmetric, the gain needed to get back to breakeven grows faster than the drawdown itself. A 20% drawdown needs a 25% gain to recover. A 50% drawdown needs a full 100% gain. An 80% drawdown needs a 400% gain, which for most strategies and most traders' patience, never happens.

DrawdownGain needed to recover
10%11.1%
20%25.0%
30%42.9%
50%100.0%
70%233.3%
80%400.0%

This recovery math is why a 50% drawdown, not a 20% one, is usually where retail algo traders quit a strategy for good: the 100% gain required to break even simply takes too long to sit through.

Worked example: say a strategy's equity curve runs from $10,000 up to a peak of $14,000, then drops to $9,800 before recovering. The drawdown is calculated from the peak, not the starting balance: ($9,800 minus $14,000) divided by $14,000, which comes out to a 30% drawdown, even though the account is still up 2% overall from where it started. This is the most common mental math mistake traders make, measuring drawdown from their starting capital instead of from the highest point the equity curve actually reached.

How to calculate drawdown in TradingView's Strategy Tester

If your strategy is coded in Pine Script, TradingView calculates max drawdown for you automatically every time you run a backtest, no spreadsheet required. It's the fastest way to get an accurate number without building your own calculator from scratch.

Reading drawdown from TradingView's Strategy Tester

  1. 1

    Open the Strategy Tester panel

    Add your strategy to a chart, then open the Strategy Tester tab at the bottom of the TradingView window.

  2. 2

    Go to the Performance Summary tab

    This tab lists Net Profit, Total Trades, Percent Profitable, and, critically, Max Equity Drawdown.

  3. 3

    Read both the percentage and currency figures

    TradingView shows max drawdown as both a dollar amount and a percentage of the largest equity peak reached during the test.

  4. 4

    Cross-check against the equity curve chart

    Switch to the Equity Curve view to see exactly when the drawdown happened, since a drawdown clustered in one bad month reads differently than one spread across a full year.

  5. 5

    Re-run across multiple date ranges

    A strategy's max drawdown on a 2024-2026 backtest can look very different on a 2020-2022 range that includes a bear market, so test both.

One detail traders miss: TradingView's default Max Equity Drawdown is calculated on intrabar highs and lows, not just closing prices, which usually produces a slightly larger, more realistic number than a simple close-to-close spreadsheet calculation would. If you're comparing TradingView's output against your own manual math, expect TradingView's figure to run a bit higher, and treat that as the more accurate one.

TradingView's Strategy Tester reports max equity drawdown as a standard output of every backtest, which makes it the fastest way to check this number without writing a single formula yourself.

How position sizing controls your drawdown

Drawdown scales almost linearly with position size and leverage. If you cut your position size in half, your expected max drawdown roughly halves too, but so does your expected return, since both are driven by the same exposure to the market. This is the core trade-off every algo trader has to make explicitly rather than discovering it by accident during a bad month.

Pros

  • Smaller position size means smaller, more survivable drawdowns
  • Lower drawdown makes it psychologically easier to stay in a strategy long enough for the edge to play out

Cons

  • Smaller position size also caps your upside on winning streaks
  • Under-sizing a genuinely good strategy leaves real return on the table

A common approach on automated platforms like 3Commas and Cryptohopper is to backtest at full size first to find max drawdown, then scale position size down until that drawdown sits at whatever ceiling you've decided you can tolerate, typically 20-25% of capital.

Say a strategy backtests to a 40% max drawdown at full position size. Cutting size to 60% of the original allocation brings the expected drawdown down to roughly 24%, close to the 20-25% ceiling most retail traders target, while giving up a proportional slice of the backtested return. That trade-off, giving up some upside for a drawdown you can actually live through, is usually the right one, since the strategy you abandon during a drawdown produces $0 in return regardless of what the backtest promised.

Halving position size roughly halves both expected drawdown and expected return, which means drawdown tolerance, not raw return targets, should be the variable you size positions around.

What is the difference between drawdown and volatility?

Volatility measures how much an equity curve wiggles in both directions, up and down, over a given period. Drawdown only measures the downside: the specific peak-to-trough decline. A strategy can have high volatility but low drawdown if its big moves are mostly to the upside, and a strategy can have surprisingly low volatility but a nasty drawdown if it has one long, slow bleed.

  • Volatility (standard deviation) treats up moves and down moves the same
  • Drawdown only counts the distance from a peak to the lowest point after it
  • Sharpe ratio uses volatility; Calmar ratio uses max drawdown instead
  • Two strategies can share the same Sharpe ratio but very different drawdown profiles
  • Always check both numbers before trusting a single risk-adjusted metric

A strategy's Sharpe ratio can look identical to another's while its max drawdown is double, which is why serious risk review always checks drawdown separately rather than trusting a single blended risk-adjusted number.

The Calmar ratio, annualized return divided by max drawdown, exists specifically because Sharpe ratio can hide exactly this problem. A strategy returning 20% a year with a 10% max drawdown has a Calmar ratio of 2.0; a strategy returning 20% a year with a 40% max drawdown has a Calmar ratio of 0.5, a four-times difference in risk-adjusted quality that a Sharpe ratio calculated on daily volatility alone might not fully capture, especially for strategies that trade infrequently.

How to build your own algo trading drawdown calculator

If your platform doesn't calculate drawdown automatically, you can build the calculator yourself in a spreadsheet in about ten minutes using three columns.

Building a drawdown calculator in a spreadsheet

  1. 1

    Column A: equity value

    List your account balance or strategy equity at the end of each trading day or trade.

  2. 2

    Column B: running peak

    Use a MAX formula that carries forward the highest equity value seen so far down each row.

  3. 3

    Column C: drawdown percentage

    Calculate (Column A minus Column B) divided by Column B for each row; this will be zero or negative.

  4. 4

    Find your max drawdown

    Take the MIN value of Column C across the whole sheet; that most-negative number is your max drawdown.

  5. 5

    Chart it

    Plot Column C as a line chart to see drawdown duration, not just depth, since a shallow but months-long drawdown can be just as hard to sit through as a sharp, brief one.

This same three-column structure works whether you're tracking a manual trading journal in Excel or exporting trade history from a bot platform, and it takes under ten minutes to set up from scratch.

The verdict: what to do next

Drawdown is the risk metric that decides whether you can actually hold a strategy through its worst stretch, which makes it more important day to day than total return or win rate. Calculate it the same way every time: (trough minus peak) divided by peak, and always pair the number with the recovery math, since a 50% drawdown demanding a 100% gain is a very different commitment than the headline loss number suggests.

If you're testing a strategy in TradingView, pull the Max Equity Drawdown figure straight from the Performance Summary tab before you size a single live position. A strategy's maximum drawdown, checked before you fund it, is the single number most likely to tell you whether you'll still be running that strategy six months from now.

Backtesting a strategy?

TradingView's Strategy Tester calculates max drawdown automatically on every backtest, which is the fastest way to run the numbers in this guide against your own strategy. New users get a $15 credit toward any paid plan through our partner link.

Try TradingView Free