Trading Strategies

Martingale and Averaging Down: How They Work and Why They Blow Up Accounts

An honest look at martingale sizing and averaging into losing positions: why the equity curve looks smooth, the maths of ruin, how to spot hidden martingales and the limits that make grids survivable.

By AlgoXP3 min readUpdated

Lot size doubling after each loss until it reaches the margin call zone

Few ideas in trading are as tempting - or as dangerous - as martingale: double the position after every loss, so the first win recovers everything plus a profit. A close relative is averaging down: add to a losing position at better prices so that a smaller move back makes the whole position profitable. Both produce beautiful backtests. Both can wipe out an account in one bad sequence.

How martingale works

Start with 0.01 lots. After a loss, double: 0.02, 0.04, 0.08… When a trade finally wins, the profit covers all previous losses.

The catch is exponential growth:

Losses in a row Next size (lots) Total exposure
0 0.01 0.01
5 0.32 0.63
8 2.56 5.11
10 10.24 20.47

Ten losses in a row are rare - but over thousands of trades, rare events happen. When they do, the position is so large that the account hits a margin call before the “inevitable” winner arrives.

How averaging down works

A grid or recovery bot opens additional positions as price moves against the first one, often with growing size. The break-even price moves closer to the current price, so a small retracement closes the whole basket in profit.

It works as long as price retraces. In a strong trend without a meaningful retracement, the basket keeps growing - and so does the floating loss.

Why the backtests look so good

  • Very high win rate - most baskets close in profit.
  • Smooth balance curve - losses stay open until they are realised.
  • Small balance drawdown, large equity drawdown - the real risk sits in open positions.
  • The killer sequence may be missing from the test period.

The maths does not change: a strategy that makes many small gains and occasionally loses a large share of the account can have positive results for years and still have negative expectancy over a long enough period - or a probability of ruin you would never accept.

How to spot hidden martingales

  • Lot size depends on previous losses or on the number of open positions.
  • Many positions in the same direction at different prices.
  • Win rate above about 85% with average win far smaller than average loss.
  • Equity drawdown several times larger than balance drawdown.
  • No hard stop on the total position.

If you use grids, make the risk finite

Grids can be traded responsibly with hard limits:

  • Volatility-based spacing - levels in ATR units so the grid widens in fast markets.
  • Maximum number of levels and a modest or no size multiplier.
  • Basket stop - a maximum loss for the whole basket.
  • Account-level equity drawdown limit that closes everything.
  • Trend filters that pause new grids in strong trends.
  • Position sizing based on the worst-case basket, not the first trade.

AlgoXP’s grid robots - Maya Gold Grid ATR and Inca Gold Grid AI Pro - use ATR-based spacing with risk presets and drawdown protection, and an account-level guardian such as T-Rex Risk Guardian can enforce loss limits across all bots. These controls make risk finite; they do not make it disappear.

Testing grid and averaging systems

  • Judge them by equity drawdown and maximum exposure, not win rate.
  • Stress-test with longer adverse moves than history contains.
  • Run Monte Carlo on basket results - see Monte Carlo simulation.
  • Size so that the worst plausible basket costs an acceptable share of equity.

Key takeaways

  • Martingale and averaging down trade frequent small wins for rare, very large losses.
  • Their backtests look smooth because risk hides in open positions and rare sequences.
  • Watch equity drawdown, lot progression and exposure to spot them.
  • Grids need hard limits - levels, basket stops, account limits - to keep risk finite.

FAQ

Is every grid robot a martingale?

No. A grid becomes martingale-like when it increases size as price moves against it and has no hard limit. A grid with fixed or modest size multipliers, a maximum number of levels and account-level drawdown limits has defined risk.

Why do martingale backtests look so good?

Because most sequences end with a small win, and the rare sequence that would ruin the account may not appear in the test period. Balance curves look smooth while equity shows deep floating losses.

How can I tell if a bot uses martingale?

Look for lot sizes that grow after losses or as positions are added, a very high win rate with small average wins, equity drawdowns much larger than balance drawdowns, and many simultaneous positions in one direction.

Sources and further reading

  1. Bailey et al.: The Probability of Backtest Overfitting - papers.ssrn.com
  2. StockCharts ChartSchool: Money Management (The Trader's Journal, Stage 1) - chartschool.stockcharts.com