WONNFX BLOG · RISK & MONEY

Martingale & Grid: Risk of Ruin

The maths behind martingale and grid expert advisors: how lot sizes explode, how likely a losing streak really is, and safer alternatives with fixed risk.

By Sergei Tsirat (WONNDER / WONNFX), author & developer5 MIN READUpdated

Martingale and grid EAs are among the best-selling robots in forex because their equity curves look beautiful: steady growth, almost no losing days. The problem is not that they can fail — every strategy can. It is how they fail: rarely, and completely.

Key takeaways
  • Martingale doubles the lot after each loss, so position size grows exponentially.
  • Over hundreds of trades, long losing streaks are expected, not rare.
  • Grid systems fail in strong trends when the basket keeps growing and price never returns.
  • Smooth equity curves and 90%+ win rates often hide this risk.
  • Fixed-percentage risk keeps losing streaks small and predictable.
  • Anti-martingale sizing grows positions after wins instead of losses.

How martingale works

After a losing trade the EA opens the next one with a larger lot — classic martingale doubles it — so that one win recovers all previous losses plus the original profit. On a coin-flip that sounds unbeatable. In practice the lot size grows exponentially.

Losses in a rowNext lot (start 0.01)Total lots riskedLoss at 20-pip stop
10.020.01$2
30.080.07$14
50.320.31$62
71.281.27$254
82.562.55$510
1010.2410.23$2,046

Ten losses from a 0.01 start require a 10.24-lot trade. Long before that, the account runs out of margin or the broker's maximum lot is hit, and the "guaranteed" recovery never happens.

How likely is a long losing streak?

Intuition says eight losses in a row is very rare. For a single sequence at a 50% win rate it is 0.39%. But over many trades the question becomes "will it happen at least once?" — and the answer changes completely.

Longest losing streak (approx.)Expected longest streak ≈ log(N) ÷ log(1 ÷ loss rate)
N = 1,000 trades, loss rate 50% → ≈ 9–10 losses in a row

Over 1,000 trades at a 50% win rate, a run of 8+ losses happens in the large majority of cases. A martingale EA trading several times a day reaches 1,000 trades within a year — so the blow-up is not a "black swan", it is the expected outcome.

Grid and averaging: the same problem, slower

A grid EA opens new positions every X pips against the trend and closes the whole basket at a small profit when price returns. In ranging markets it wins constantly. In a strong trend — a central bank surprise, a gold rally of $100 — the basket keeps growing while price never comes back. Floating loss becomes the account's real risk, and the balance curve hides it until margin call.

How to spot it in a track record

Win rate above 85–90%, many simultaneous trades on one symbol, average loss many times bigger than average win, and equity drawdown much deeper than balance drawdown.

Risk of ruin for fixed-risk trading

With fixed fractional risk the picture is the opposite: losses are small and constant, and a losing streak costs a predictable amount. At 1% risk, ten losses in a row reduce the account by about 9.6% — painful, survivable.

Approach10 losses in a rowRecovery needed
Martingale ×2 from 1%Account gone—
Grid, 10 open levelsDepends on trend; often margin call—
Fixed 1% risk−9.6%+10.6%
Fixed 2% risk−18.3%+22.4%
☠Run the numbers on your own strategyFree Risk of Ruin and Expectancy calculators→

How to detect martingale in the Strategy Tester

  1. Run the EA on several years of real-tick data.
  2. Open the Trades or Positions list and sort by volume. Lot sizes many times the starting lot are the clearest sign.
  3. Look at the equity graph under the balance line. Deep equity dips that later recover indicate losses held open.
  4. Check maximum consecutive losses and the biggest loss compared with the average win.
  5. Test a strong trending period — for example a year with a large gold rally — and watch the margin level.

Why "never lost a month" means little

A martingale or grid system converts many small, frequent losses into one rare, huge loss. Monthly statistics then look perfect right up to the event. A more honest metric is the recovery factor — net profit divided by maximum drawdown — measured on equity, not balance, over a long period.

Recovery factorRecovery factor = Net profit ÷ Maximum equity drawdown
Profit $6,000 · Max DD $2,000 → RF = 3.0

Anti-martingale: increasing size the right way

The mirror image of martingale is anti-martingale: risk stays a fixed percentage of equity, so position sizes grow after wins and shrink after losses automatically. Pyramiding — adding to a winning position with the stop moved to break-even — is another form. Both let profits compound while keeping losing streaks small, the opposite of doubling down.

MartingaleAnti-martingale
After a lossIncrease lotDecrease lot
After a winReset to base lotIncrease lot
Losing streakExponential lossShrinking loss
Typical equity curveSmooth, then a crashBumpy, survivable

Safer alternatives

  • Fixed stop-loss and take-profit on every position.
  • Fixed fractional sizing — risk the same percentage per trade.
  • Daily loss limit that stops trading after a bad day.
  • Filters (news, session, volatility) instead of adding positions to losers.

Lower win rates and a few red days are the price of a strategy that can survive a trend. Every WONNFX system for copy trading is built on that principle: no martingale, no grid, no averaging.

◆Explore WONNFX expert advisorsULTRA MAX, INGOT PRO and free tools for MT5 / MT4→

If an EA fails this check but you still want to use it, treat its full balance as money at risk and size the allocation accordingly — never the whole account.

Before you run any EA: a 30-second check

  • Does every trade have a stop-loss?
  • Does the lot size stay fixed or proportional to equity after a loss?
  • Is the equity drawdown close to the balance drawdown?
  • Has it survived a strong trending period on your symbol?

Four "yes" answers do not guarantee profit, but a single "no" is enough reason to look much closer before risking real money.

Frequently asked questions

Lot sizes grow exponentially after losses. Over hundreds of trades a long losing streak is almost certain, and the required lot exceeds the account's margin before a win can recover the losses.
In ranging markets it often looks very profitable, but a strong one-directional trend can produce floating losses large enough to cause a margin call.
The probability that a strategy loses a defined part of the account (or all of it) given its win rate, reward-to-risk and risk per trade.
No. The WONNFX GFS GT copy-trading system uses no martingale, grid or averaging, with SL and TP on every trade.
It is closely related. Adding to a losing position increases exposure while the trade goes against you, which can grow losses quickly in a trend.
A basket stop-loss limits the damage, but it also caps the strategy's recovery. Test it on strong trending periods to see the real worst case.

Sergei Tsirat (WONNDER / WONNFX) — author and developer of the WONNFX project. MQL5 profile · Telegram

Educational content only, not financial advice. Leveraged trading carries a high risk of loss. Past performance does not guarantee future results. Broker and prop-firm rules change — always check the current conditions of your provider.

Keep reading

Related guides

Get new guides and signals in Telegram

Project news, tool updates, economic news and trade notices from WONNFX.

WONNFX ONLINE
Trading forex and CFDs involves significant risk and may not be suitable for every investor. Articles are educational and are not investment advice. WONNFX is not a broker. · wonnfx.online · Blog · Calculators · Telegram
project news and updates:
[WONNFX ON TELEGRAM]
Project news. Information about new products and updates.
Project community.
Chat for communication.
Publication of important economic news in the telegram channel.
Publication of opening and closing deals in the telegram channel.