Risk management

Martingale and grid trading in Expert Advisors: what they are, why they eventually fail and how to spot them

Published November 2, 2026 · By the AUREUM team · 11 min read

Martingale doubles the lot size after every loss so that a single winner wins it all back. A grid opens orders every few dollars, often without a stop loss, and waits for the price to come back. Both produce curves that climb in an almost straight line, and both hide the same thing: a rare but huge loss that can wipe out the account. Here’s the math on gold, and how to spot them before you pay.

What martingale is in trading, and its variants

The martingale strategy is a rule for sizing each trade: after a loss, the next trade opens with double the lot size. It comes from gambling: when you finally win, that one winner recovers everything you lost, plus the profit the first trade was aiming for.

An example on gold. With the usual contract of 100 ounces per lot (check it in your broker’s Specification window, as we explain in how to calculate lot size in gold), 0.01 lots make or lose $1 for every dollar the price moves. With the stop loss and the target both at $10, the first trade, at 0.01 lots, risks $10. If it loses, the second goes on with 0.02; if that loses too, with 0.04, and so on. After three losses, for example, $70 is already gone (10 + 20 + 40) and the fourth trade goes on with 0.08 lots:

Losses in a rowNext lot sizeLost so far
None0.01$0
10.02$10
30.08$70
50.32$310
71.28$1,270
82.56$2,550
1010.24$10,230

Whenever the win comes, the cycle leaves $10 before costs. But after seven losses in a row, the eighth trade goes on with 1.28 lots, 128 times the first, and $1,270 is already gone. And margin stops you sooner: with gold at $4,000 and the 1:20 maximum leverage for retail clients in the EU and the UK, 1.28 lots tie up $25,600 (how it’s calculated, in margin call and stop out). To open that eighth trade you’d need almost $27,000 in the account. All of that, to make $10.

Soft martingale and recovery modes

A soft martingale multiplies by less, by 1.5 for example: after seven losses, the lot is about 17 times the starting size instead of 128, but from two losses in a row onwards, a single winner no longer wins it all back. Recovery modes open bigger or more numerous trades after a loss. The name changes, the idea doesn’t: the size grows with the loss.

What grid trading and averaging down are

A grid places orders at fixed price intervals: a buy every $10 that gold falls, a sell every $10 that it rises, or both. Many grids don’t use a stop loss: they close the whole group once the price has come back far enough for the total to be in profit.

Averaging down is the best-known case: you buy, the price falls and you buy again lower, so your average entry price drops and a smaller bounce is enough to get out. It’s a one-way grid, and if the lot size is multiplied at each level, it’s a grid with martingale. It almost never closes a trade at a loss; the problem is what happens if the price doesn’t come back.

Why the curve looks so good, and why it ends badly

Neither of them turns a losing strategy into a winning one: they change how the results are spread out. Many small losses become many small wins and one rare, huge loss. That’s why the balance curve climbs in an almost straight line, until the day it doesn’t.

Martingale: the streak comes sooner or later

Back to the example, now with a cap: the robot goes back to 0.01 lots after a win or after eight losses in a row. With a 50% win rate and no costs, a cycle loses all eight once in every 256 (0.5 to the power of 8). The other 255 make $10 each, $2,550 in total; that one loses $2,550 in one go. The expectancy, what each cycle makes on average, is exactly zero, and with spread and commissions it’s negative: martingale doesn’t create an edge, it concentrates the risk in one streak.

When does it come? Nobody knows. By our calculation, the probability of having hit it reaches 50% around cycle 177, after about $1,770 of very steady gains, and 98% over 1,000 cycles. And over 1,000 trades with a 50% win rate, you’ll most likely see at least one run of eight losses in a row (an 86% probability): streaks run longer than we expect, as we explain in losing streaks in trading.

Grid: gold moves more than it seems

In a grid, the loss stays open and grows faster than the move: every dollar the price falls is lost by all the positions at once. Here are two buy grids with no stop loss against a fall in gold; each cell shows the open lots and what they’re losing together (with the fixed grid, after a $100 fall, that’s 11 buys of 0.01: the first one and one every $10):

Gold’s fallFixed grid: 0.01 lots every $10Grid that doubles the lot every $20
$500.06 lots, −⁠$1500.07 lots, −⁠$150
$1000.11 lots, −⁠$5500.63 lots, −⁠$1,140
$1500.16 lots, −⁠$1,2002.55 lots, −⁠$7,490
$2000.21 lots, −⁠$2,10020.47 lots, −⁠$40,720

In the fixed grid, if the fall goes from $100 to $200, the loss almost quadruples. The one that doubles the lot is already holding 2.55 lots after a $150 fall: about $51,000 of margin at 1:20 with gold at $4,000. In return, at that point a bounce of about $29 is enough for it to close without a loss, against $75 for the fixed grid: that’s why it almost always works out.

And falls like these aren’t rare. According to Dukascopy’s public data, between August and October 2026 gold moved more than $100 from high to low on 21 of its 65 trading days; on Friday, August 28 it fell $185.63 in under five hours, and from the August 25 high ($4,696.64) to the October 30 low ($3,869.98) it dropped almost $827 (more data in the best timeframe to trade gold). A grid without a stop has no set loss limit: the money in the account sets it, and what cuts it off is the stop out, when the broker force-closes positions.

That also explains the win rate: in a grid it shoots up, because losing trades aren’t closed, they wait; in a martingale with a stop, what looks close to perfect is the share of cycles that end in profit. It’s the pattern in why a high win rate can be a trap.

How to spot martingale or grid in a MetaTrader 5 backtest

A Strategy Tester backtest leaves traces even when the balance curve is perfect (how to run one, in how to backtest in MetaTrader 5):

A grid can come out of a backtest without big drawdowns if the period didn’t include the move that breaks it: how it handles a loss matters more than the curve it drew (backtesting and overfitting).

How to spot martingale or grid on Myfxbook

On an account published on Myfxbook, look in these places (what each figure means, in how to read a Myfxbook account):

Clues in an EA’s inputs, and what to ask the seller

An Expert Advisor’s settings are on the Inputs tab. Each developer chooses the names, so they’re only a guide: what gives the technique away isn’t the name, but whether the lot size grows after a loss or orders open at a fixed distance from the previous one. These names often go with it:

And before you pay, ask in writing:

Martingale and grid aren’t illegal in themselves: they’re ways of deciding the size and number of trades, and some traders use them knowing exactly what they’re doing. What they lack is a small maximum loss known in advance: either there’s no cap (a grid without a stop, a martingale with no limit on the number of steps) or, if there is one, it’s huge compared with what each cycle makes. What’s misleading is selling them without saying so (more in red flags of a trading robot scam).

Several prop firms ban them explicitly in their rules, so read your firm’s rules before you run an EA. Others don’t name them, but their daily and maximum loss limits clash with any technique that piles up open losses (we cover it in prop firm rules for an EA).

Checklist: does this robot use martingale or grid?

Passing the list doesn’t make a robot profitable: it only tells you its risk is out in the open. The rest is in what to check when choosing an Expert Advisor for gold.

AUREUM: no martingale, no grid

AUREUM is an Expert Advisor for gold (XAU/USD) on MetaTrader 5, and it doesn’t use martingale or grid: it doesn’t increase the lot size after a loss or open trades to average down against the move. Every trade opens with its loss and profit limits already calculated. With its reference lot mode, which is how it comes set up, the size is 0.01 lots per 1,000 of your account balance, rounded to the step your broker allows, with a minimum (your broker’s minimum lot) and a cap of 1 lot. Because it depends on the balance, after a losing streak the lot size stays the same or goes down; it never grows to win back what was lost. If you see mmMultiplier in its Inputs, it only counts in manual mode (LOT_MANUAL), where the lot is mmLots × mmMultiplier: a fixed size you choose that doesn’t change after a loss.

Its published backtest, a simulation on XAU/USD on the 1-hour chart (H1) from 2020 to 2026, has 439 trades and a maximum drawdown on balance of 21.84%. The home page also has a live account connected to Myfxbook.

Frequently asked questions about martingale and grid

What is martingale in trading?

Doubling the lot size, or multiplying it, after every loss, so that a single winner recovers what was lost. It works until the losing streak the account can’t pay for: on gold, with 0.01 lots and a $10 stop, after seven losses in a row the next trade is 1.28 lots and $1,270 has already been lost.

What is a grid, and what is averaging down?

A grid opens orders at fixed price intervals, often without a stop loss, and closes them together when the price comes back. Averaging down is a one-way grid: buying more the further the price falls. If it doesn’t come back, the open loss grows faster than the fall.

How can you tell if an EA uses martingale or grid?

Look at the lot sizes and the equity: lots that grow after a loss or pile up, equity that falls much further than the balance in the backtest or on Myfxbook, and inputs that multiply the lot after a loss or open orders in a series (names like LotExponent, PipStep or MaxOrders often go with them, but they aren’t proof).

Does martingale work in trading?

It doesn’t create an edge, even if it looks like it: it swaps many small losses for many small wins and one rare, huge loss. With a 50% win rate, a stop equal to the target and no costs, its average result is zero, and with spread and commissions, negative. That’s why the curve climbs in an almost straight line until the streak the account can’t pay for.

Are martingale and grid legal?

Yes: using them isn’t prohibited in itself, because they’re ways of deciding the size and number of trades. But their worst loss has no cap or, if it has one, it’s huge compared with what they make each cycle, and many prop firms restrict or ban them.

Does AUREUM use martingale or grid?

No. AUREUM doesn’t increase the lot size after a loss or open trades to average down against the move: every trade opens with its loss and profit limits already calculated, and its reference lot is 0.01 lots per 1,000 of balance, with a cap of 1 lot.

Risk warning

This article is educational and is not financial advice or an investment recommendation. The martingale and grid examples are our own calculations with round numbers (gold at $4,000, a 100-ounce contract and 1:20 leverage), and gold’s moves come from Dukascopy’s public data: your broker may have a different contract, different costs and different prices. Leveraged gold trading carries a high level of risk and you can lose some or all of your capital. The AUREUM figures we quote come from a simulation (backtest), not from a live account. Past or simulated results do not guarantee future results.

AUREUM: the lot size doesn’t double after a loss

Software that trades XAU/USD in your own MetaTrader 5 account, with no martingale or grid: every trade opens with its loss and profit limits already calculated, and the size adjusts to your balance. Its 2020–2026 backtest is published: a maximum drawdown on balance of 21.84% across 439 trades. The backtest is a simulation, not a live account.

See the full report →