The most seductive equity curve in algo trading
No EA type sells as easily as a martingale or grid system. The equity curve rises almost linearly, drawdown looks minimal, the profit factor looks spectacular. That very beauty is the problem: it hides a risk that never appears in the statistics of the calm months, only in the one month that erases everything.
This guide explains the mechanics honestly — not to demonise these EAs, but so you understand what you are really buying when the curve looks too good. For the matching evaluation framework, see What makes a good forex EA?.
How a grid system works
A grid EA places orders at fixed intervals (e.g. every 20 pips) above and below a starting price. As the market moves, positions open one after another. When price oscillates inside the grid, the EA closes partial positions for small gains.
- Strength: in sideways markets the grid harvests a steady stream of small profits.
- Weakness: in a strong, sustained trend more and more positions open against the move, the unrealised loss grows, and there is no natural exit.
How martingale works
Martingale comes from gambling: after every loss the stake is doubled, so that a single win recovers all prior losses plus a small profit.
In trading that means: when a trade goes negative, the EA opens a larger counter-position (often 1.5x to 2x the lot size). When the market reverts, the whole sequence closes in profit. Many commercial EAs combine grid and martingale — the grid staggers the entries, the lot progression enlarges the positions.
Why the maths works against you
The core problem is exponential position growth against linear capital.
With 2x progression, lot size develops like this:
| Level | Lots | Cumulative | |---|---|---| | 1 | 0.1 | 0.1 | | 2 | 0.2 | 0.3 | | 3 | 0.4 | 0.7 | | 4 | 0.8 | 1.5 | | 5 | 1.6 | 3.1 | | 6 | 3.2 | 6.3 | | 7 | 6.4 | 12.7 |
After just seven consecutive losses you are trading 64x the starting size. A longer losing streak — entirely normal in a strong trend or a news gap — exceeds any real account. The market does not have to go "wrong"; it only has to run one direction longer than your capital can withstand.
This is exactly why the equity curve deceives: it shows the many times the market reverted, not the one time it did not.
Why drawdown looks harmless in the backtest
In a backtest, maximum drawdown is often measured only on a closed trade — not on the open, floating position. A grid carrying a huge unrealised loss that just barely turns positive at the end shows up as a profitable trade with low "closed" drawdown. The true moment of risk — the floating drawdown just before margin call — often does not appear cleanly in many reports.
So look at the maximum floating drawdown and the margin utilisation, not just the realised drawdown.
When grid/martingale is ever viable
There are narrowly defined scenarios in which experienced traders deliberately use this mechanic:
- Only with a real capital stop: an absolute equity drawdown at which the entire grid is closed — at a loss if necessary. This converts the unbounded tail risk into a defined maximum loss.
- Limited number of levels: at most 3–5 averaging steps, then a hard stop.
- A very small share of capital: treat the EA as a speculative position whose total loss is planned for.
- Only on pairs with pronounced mean-reverting behaviour and a low tendency to trend.
Anyone who does not accept these controls is not trading a system but a time bomb with an unknown fuse.
Non-negotiable risk controls
- A hard equity stop for the whole sequence (not per trade).
- A fixed cap on the number of open positions.
- Margin-level monitoring with an automatic emergency exit.
- No exposure over news — a news filter is not optional here.
- Never run several martingale EAs in parallel on correlated pairs: in a crash they blow the account together. The EA portfolio management guide explains why combined drawdowns are especially dangerous here.
Conclusion
Grid and martingale EAs are not magic money machines but a deliberate trade-off: many small, almost-certain gains in exchange for a rare, catastrophic loss event. Anyone who understands this and works with a hard capital stop, limited levels and a small stake can use them as calculated speculation. Anyone who falls for the smooth equity curve and plays "set and forget" will, in all probability, eventually lose everything. When in doubt: an EA with visible, controlled drawdown is safer over the long run than one that supposedly never loses.