Why Grid and Martingale EAs Blow Accounts (The Maths Behind the Smooth Curve)

EA marketplaces and Telegram channels regularly promote robots with a 97% win rate, a balance curve that rises like a staircase and months of steady profit. Then, often without warning, the account is lost and the comments fill with “it was working fine until yesterday”.

Almost always, that EA was a grid, a martingale, or a mix of both. This article explains how these systems work, why they look so good for so long, and why the ending is predictable.

What Is a Martingale?

Martingale comes from an old gambling strategy: after every loss, double your bet. When you eventually win, you recover all previous losses plus one unit of profit.

In trading, a martingale EA opens a trade. If it goes against you, it opens another in the same direction with a larger lot, so a smaller move back is enough to close everything in profit. Keep doing that, and almost every “cycle” ends in a small win.

What Is a Grid?

A grid EA places trades at fixed price intervals. For example, it buys gold every $3 lower. When price bounces, the combined positions close in profit. Many grid EAs also increase lot size as the grid deepens, which turns them into a grid-martingale hybrid.

Both approaches share one idea: never accept a loss; average down until the market comes back.

The Maths: Why It Works Until It Does not

Take a martingale starting at 0.01 lots that doubles after each losing step:

  • Step 1: 0.01 (total open: 0.01)
  • Step 2: 0.02 (total: 0.03)
  • Step 3: 0.04 (total: 0.07)
  • Step 4: 0.08 (total: 0.15)
  • Step 5: 0.16 (total: 0.31)
  • Step 6: 0.32 (total: 0.63)
  • Step 7: 0.64 (total: 1.27)
  • Step 8: 1.28 (total: 2.55)

By step 8 you are holding 255 times your starting size, all on a trade the market has been rejecting for eight steps. The profit target for the whole cycle is still roughly what the first 0.01 lot would have made.

Put numbers on it with gold. If each step is $3 apart and the market moves $24 against the first entry, the basket is underwater by about $1,500, even though it started with a 0.01-lot trade. A $500 or $1,000 account does not survive that. The broker’s margin call closes everything at the worst possible moment.

In effect, the EA is exchanging many small, likely wins for a rare, near-certain total loss. The win rate looks spectacular because the losses are not taken one at a time. They are stored up and paid all at once.

A Worked Example: A $500 Gold Account

Consider a typical grid-martingale EA on gold, step by step. Assume one standard lot is 100 ounces, so a $1 move costs $1 for every 0.01 lots held. The EA buys 0.01 lots, then buys again every $3 lower, doubling the lot each time, and closes the whole basket once it is $2 in profit.

  • Normal days: gold dips $4–6, the EA adds one or two positions, gold bounces, and the basket closes for a couple of dollars. Repeat a few times a day and the account grows 1–2% a week. The balance curve looks perfect.
  • A $12 drop: the EA now holds 0.01 + 0.02 + 0.04 + 0.08 + 0.16 = 0.31 lots, bought at prices above the market. The floating loss is about $78, or 16% of the account. Uncomfortable, but a bounce still rescues it.
  • A $15 drop: another level fills, so the EA holds 0.63 lots. The floating loss is about $171, or 34% of the account.
  • An $18 drop: the next level fills at 0.64 lots, so the EA is holding 1.27 lots. The floating loss is now about $360, or 72% of the account, and margin is nearly exhausted.
  • A $20 drop: with 1.27 lots open, every extra dollar costs $127. Floating losses pass $600, more than the whole account. The broker’s stop-out closes every position at the worst prices of the move before it even gets there. The account is gone.

A $20 move in gold is not a black-swan event. It is an ordinary day around US inflation data or a central-bank decision. Weeks of 1–2% gains disappear in a few hours, and because the lots were doubling, the final loss is many times larger than all the small wins put together.

Notice too that the EA never “took a loss” before the end. Its trade history would show a near-100% win rate right up to the margin call. That is exactly why win rate alone is a dangerous number to judge an EA by.

Why the Backtest Looks Perfect

Three things make grid and martingale backtests misleading:

  1. Balance vs equity. The balance line only updates when trades close. Since the EA closes baskets in profit, balance climbs smoothly while equity dives deeply during every drawdown. Many sellers only show the balance line.
  2. Cherry-picked periods. A ranging market is a grid’s best friend. Test on a choppy six months and it looks unbeatable. Include a strong one-way trend and it blows up.
  3. Low modelling quality. Coarse tick modelling can miss the intrabar moves that would have triggered a margin call.

When you backtest one yourself, always watch the equity curve and the maximum equity drawdown. Our guide to backtesting EAs in MT5 covers how.

Markets Do not Have to Come Back

The whole strategy rests on one assumption: price will return to your average entry before your margin runs out. Usually it does, but markets also trend. Gold has had stretches where it moved hundreds of dollars in one direction with only shallow pullbacks. Currency pairs have moved thousands of pips after central-bank decisions. Synthetic indices can run in one direction far longer than you would expect.

A grid or martingale does not need the market to go to zero to destroy the account. It only needs one move larger than the account can absorb, and over a long enough period that move always comes.

How to Recognise a Grid or Martingale EA

  • Win rate above 90% with tiny average wins.
  • Multiple positions open in the same direction at different prices.
  • Lot sizes that increase after losses (look for inputs like “multiplier”, “lot exponent”, “step”, “distance”).
  • No fixed stop loss, or a stop so wide it is effectively absent.
  • Marketing that shows balance but never equity.
  • Recommendations to use very high leverage or a “cent account”.

Can Grid Systems Ever Be Used Safely?

Some traders use grids deliberately with strict limits: no lot multiplication, a hard cap on the number of positions, a basket stop loss, and a small fraction of capital allocated. That turns an unlimited-risk system into a limited-risk one, at the cost of accepting real losses sometimes. The key question to ask of any EA is simple:

What is the most this EA can lose, and do I accept that number?

If you cannot answer it from the settings, the realistic answer is “the whole account”.

Better Alternatives

  • Fixed-risk EAs that place a stop loss on every trade and size positions as a percentage of balance.
  • Trend or breakout systems that accept many small losses for occasional large wins. Their curves are bumpier but their losses are capped.
  • Manual trading with a calculator, where every trade’s risk is known in advance. Our free risk calculator does the sizing for you.

A strategy that loses 1% many times will feel worse day to day than one that wins 97% of the time. Over a year, the first is usually the one still standing.

Summary

Grid and martingale EAs do not remove risk. They hide it and postpone it. The smooth curve is real, and so is the cliff at the end. Before running any EA, find out how it handles a losing trade. If the answer is “it adds more”, treat it as a high-risk system, use money you can afford to lose entirely, and never trust the balance curve alone.

Trading with leverage carries a high level of risk. This article is educational and is not financial advice. See our risk disclaimer.

Free forex signals, EAs & indicators — straight to your Telegram. Join on Telegram
Scroll to Top