Martingale EA risk comes down to arithmetic: a system that doubles its next trade after a loss produces many small wins and, sooner or later in some runs, one very large loss. Some expert advisors (EAs) work this way, and so do grid systems that add positions as price moves against them. This guide shows what each extra level costs, how likely a long losing run is, and what an eight-level grid does to margin. It does not say that doubling down works or fails. Fixed-size risk is covered in our 1% rule post; this one covers what changes when size grows after losses.
On this page 10 min read
- Key findings (computed)
- How martingale works, and how a grid differs
- The losing-run arithmetic
- Worked example 1: a 55% win rate over 200 trades
- Worked example 2: a grid of eight buys, 20 pips apart
- Where it breaks in practice
- What to ask about an EA that doubles or averages
- What to take from it
- Frequently asked questions
- Method and data
- Sources and further reading
- Keep reading
Key findings (computed)
- Total risk doubles with every level. After k losses in a row the total lost is 2^k – 1 base stakes. With a base stake of 0.5% of the account, 7 losses in a row have cost 63.5% and the next stake would be 64% of the original account, more than the 36.5% that is left.
- Long losing runs are not rare. At a 55% win rate, the chance of at least one run of 7 losses in 200 trades is 33.4% (exact). A 10,000-path simulation with a fixed seed gave 33.3%.
- Doubling does not change the odds of a single trade. At a 50% win rate with 1:1 payoffs the expected result per cycle of the rule used here is 0.000 units, the same zero as fixed size. What changes is the shape of the outcomes.
- A smooth curve says little about the tail, and a smooth tester curve can mislead for other reasons. In an 80% win-rate example, the median maximum drawdown was 15 base stakes (7.5% of the account), while 1.0% of the 1,000-trade paths reached 7 losses in a row.
- A grid trades distance for size. Eight 0.1-lot buys lose $8 per pip once all are open.
How martingale works, and how a grid differs
A martingale raises the stake after a loss, usually doubling it, and returns to the base stake after a win. With a 1:1 payoff (a win pays the amount staked), the first win after any number of losses leaves the series one base stake ahead. That is the source of the steady gains, until the account cannot fund the next stake.
A grid or averaging system works on price distance. It opens another position in the same direction at fixed steps against the trade and closes the basket when price returns toward the first entry. The stake need not double, but exposure grows with every step against you. Both share a bounded gain per series against a loss capped only by margin, maximum volume or the account. Our posts on vetting a forex expert advisor and risk controls for automated trading cover the checks.
The losing-run arithmetic
What each level costs
The table shows the stake at each level, the total lost after that many losses in a row, and the total as a share of the account for two base sizes.
| Losses in a row | Stake | Total lost | Lost if base is 0.5% | 1% | Lots if base is 0.01 |
|---|---|---|---|---|---|
| 1 | 1x | 1x | 0.5% | 1% | 0.01 |
| 2 | 2x | 3x | 1.5% | 3% | 0.02 |
| 3 | 4x | 7x | 3.5% | 7% | 0.04 |
| 4 | 8x | 15x | 7.5% | 15% | 0.08 |
| 5 | 16x | 31x | 15.5% | 31% | 0.16 |
| 6 | 32x | 63x | 31.5% | 63% | 0.32 |
| 7 | 64x | 127x | 63.5% | 127% | 0.64 |
| 8 | 128x | 255x | 127.5% | 255% | 1.28 |
| 9 | 256x | 511x | 255.5% | 511% | 2.56 |
| 10 | 512x | 1023x | 511.5% | 1023% | 5.12 |
Stake doubles after every loss; total lost after k losses is (2^k – 1) base stakes. Percentages are of the starting account. Spread and swap ignored.
The total lost is always one base stake less than the next stake: after 7 losses the total is 127 and the next stake is 128. A 10% loss is passed after 5 losses at a 0.5% base, and a 50% loss after 7. Brokers set a maximum volume per order for each symbol, so check the symbol specification in your own platform.
How likely is a long losing run?
If each trade is an independent win or loss with the same win rate, the chance of at least one run of k losses in N trades can be computed exactly. Independence is an assumption: real strategies cluster, which usually makes long runs more likely. The risk simulator uses the same calculation. For 200 trades, roughly a year at about one trade a day:
| Win rate (hypothetical input) | Run of 5 losses | Run of 7 | Run of 10 |
|---|---|---|---|
| 60% | 71.37% | 17.53% | 1.20% |
| 80% | 4.91% | 0.20% | 0.00% |
Exact probability of at least one such run in 200 independent trades. Win rates are hypothetical inputs; other win rates we calculated are not shown here.
And for 1,000 trades:
| Win rate (hypothetical input) | Run of 5 losses | Run of 7 | Run of 10 |
|---|---|---|---|
| 60% | 99.82% | 62.66% | 6.05% |
| 80% | 22.54% | 1.01% | 0.01% |
Exact probability of at least one such run in 1,000 independent trades. Win rates are hypothetical inputs; other win rates we calculated are not shown here.
At a 90% win rate the chance of a run of 5 losses in 1,000 trades is 0.9%: small, not zero. At 70% it is 81.9%. The chance of a long run is small per trade and grows with the number of trades.
Series arithmetic
Treat a series as one cycle: it ends at the first win (+1 unit) or at the 7th straight loss (-127 units). At a 50% win rate the expected result per cycle is zero, exactly like fixed size; at 45% it is -0.95. At 60%, the chance that a cycle ends in 7 straight losses is 1.64e-03. The doubling rule changes when gains and losses arrive, not the probability of each trade winning.
Worked example 1: a 55% win rate over 200 trades
Assumptions: 1:1 payoff, 55% win rate, independent trades, a base stake of 0.5% of the account, and the martingale stops trading after 7 losses in a row because the 8th stake (64%) could not be funded. The comparison is a fixed 0.5% stake on the same sequence of wins and losses.
The exact probability of a run of 7 losses in 200 trades is 33.4%. A simulation of 10,000 paths with a fixed seed gave 33.3%; the two agree within sampling error, which an automated test checks. Results in base stakes (one base stake is 0.5% of the account):
| Result after 200 trades | Doubling after losses | Fixed 0.5% stake |
|---|---|---|
| Average | 48.0 | 20.0 |
| Median | 105.0 | 20.0 |
| 5th percentile (bad outcome) | -113.0 | -2.0 |
| 95th percentile | 121.0 | 44.0 |
| Median maximum drawdown | 63.0 | 10.0 |
| 95th percentile maximum drawdown | 127.0 | 19.0 |
Simulated, 10,000 paths, seed fixed in the script. Win rates are hypothetical inputs. Spread and swap ignored. Drawdown is measured on closed-trade results.
The higher doubling average does not show that doubling adds value. It comes from the assumed 55% win rate at a 1:1 payoff, which is a positive expectancy chosen as an input, combined with larger total stakes. The expected result per unit staked is the same in both columns. The win rate is an assumption, not an estimate for any real system. Compare the average and the bad-outcome rows, not the median alone.
Worked example 2: a grid of eight buys, 20 pips apart
Assumptions (illustrative, not a market quote): EUR/USD at 1.1000, 100,000-unit contract, a $5,000 account, 0.1 lot per level, a new buy every 20 pips lower, up to eight buys, no stop loss, margin per level held at the 1.1000 value, spread and swap ignored. Each pip is $1 per open position, so with all levels open the basket loses $8 per pip.
Per the MetaTrader 5 help, forex margin is lots times contract size divided by leverage. At 1:100 each 0.1-lot position needs $110 here. Margin level is commonly equity divided by margin used, times 100; brokers define their own margin call and stop-out levels, so check yours.
| Pips below first buy | Buys open | Total lots | Floating loss | Loss, % of account | Margin used | Margin level |
|---|---|---|---|---|---|---|
| 20 | 2 | 0.2 | $20 | 0.4% | $220 | 2,264% |
| 40 | 3 | 0.3 | $60 | 1.2% | $330 | 1,497% |
| 80 | 5 | 0.5 | $200 | 4.0% | $550 | 873% |
| 140 | 8 | 0.8 | $560 | 11.2% | $880 | 505% |
| 200 | 8 | 0.8 | $1,040 | 20.8% | $880 | 450% |
| 300 | 8 | 0.8 | $1,840 | 36.8% | $880 | 359% |
| 500 | 8 | 0.8 | $3,440 | 68.8% | $880 | 177% |
Eight buys of 0.1 lot, one every 20 pips, $5,000 account, 1:100 leverage, illustrative price 1.1000 (not a market quote). Spread and swap ignored.
The margin level falls as price keeps moving against a full basket (see margin call and stop out). This table shows the pips below the first buy at which it reaches three illustrative thresholds:
| Account | Leverage | Pips to margin level 100% | to 50% | to 20% |
|---|---|---|---|---|
| $2,000 | 1:100 | 210 | 265 | 298 |
| $2,000 | 1:30 | 80 | 140 | 247 |
| $5,000 | 1:100 | 585 | 640 | 673 |
| $5,000 | 1:30 | 329 | 512 | 622 |
| $10,000 | 1:100 | 1,210 | 1,265 | 1,298 |
| $10,000 | 1:30 | 954 | 1,137 | 1,247 |
Pips below the first buy at which equity divided by margin used first falls to the stated level. The levels are illustrations; each broker sets its own margin call and stop-out levels.
The distance depends mostly on account size relative to lot size: a smaller account has far less room, and lower leverage uses more margin. The numbers show room, not the likelihood of a move. The margin calculator lets you test your own account and lot size.
Where it breaks in practice
- Margin and maximum volume. The ladder reaches large lot sizes within a few levels, and a broker may cap order volume. If the next stake cannot be placed, the loss stays in place.
- Gaps and slippage. A fast move or a weekend gap can fill levels at worse prices than planned.
- Loss limits. A daily loss limit of 5% is passed after only 4 doubling levels at a 0.5% base.
- Costs and dependence. Spread, commission and swap are paid on every level and were ignored here. Losing trades also cluster in trends, so long runs may be likelier than the tables show.
What to ask about an EA that doubles or averages
- Does it add to a losing position or increase size after a loss? By how much, and what is the maximum number of levels?
- What is the largest drawdown in the record, measured on equity, not only on closed trades?
- What stops the series: a fixed stop loss on the basket, a maximum level, a daily loss limit?
- How many trades are in the record, and what is its longest losing run?
Regulators have acted when automated trading programs were marketed with misleading performance claims. One example is ASIC media release 23-011MR, in which ASIC banned a director after finding, among other things, that he misled clients about the performance of a leased automated FX trading program. The release notes the decision can be reviewed. That is a reason to check claims, not a verdict on any type of system.
What to take from it
- Ask for the worst case in money and in percent. Total risk after k levels is 2^k – 1 base stakes. Work out the level at which your account or your firm’s limit is reached.
- Judge a system by its tail, not its calm. A smooth closed-trade record is also what a doubling system shows before it meets a full losing series, as the 80% example shows.
- Compare the whole ladder or grid with the account. If the account cannot fund every level or the full basket, the plan has a hidden stop point, and that is where the large loss is taken.
Frequently asked questions
Does martingale work?
The arithmetic here does not label it either way. Doubling after a loss cannot change the probability that a given trade wins. It changes how outcomes are distributed: many small gains and rare, very large losses.
How many losing trades in a row can a martingale survive?
It depends on the base stake and the account. With a 0.5% base, 7 straight losses cost 63.5% of the account and the 8th stake could no longer be funded, as the ladder table shows.
Is a grid EA the same as a martingale?
Not exactly. A martingale scales the stake after a loss, while a grid adds positions at fixed price steps. Both can leave a large open exposure when price keeps moving against the basket, so both need a limit on total size.
Why do these EAs often show smooth equity curves?
Most series end with a small win, so closed-trade results rise steadily for long periods. The rare series that does not end in a win produces the large drawdown, and a short record may not contain it.
What win rate would make doubling safe?
No win rate removes the risk. A higher win rate makes a full losing series rarer, but when it happens the loss is the whole ladder (127 base stakes in the 7-level example), and the chance grows with the number of trades. Real trades are not independent, which can make long runs more likely than the tables show.
Method and data
No market data was used. We computed the numbers with our own script; the method is described here. We also computed win rates that are not shown here. Run probabilities are exact; simulations use a seeded generator with 10,000 paths, and an automated test of ours checks that the two agree. Assumptions: independent trades, a fixed win rate, a 1:1 payoff, no spread, commission or swap, a martingale that stops after 7 losses in a row, and for the grid an illustrative EUR/USD price of 1.1000, a $5,000 account and 0.1 lot per level. The figures show orders of magnitude, not a forecast.
Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.
Sources and further reading
- MetaTrader 5 Help, margin calculation for forex: https://www.metatrader5.com/en/terminal/help/trading_advanced/margin_forex
- MIT OpenCourseWare RES.6-012, “Gambler’s Ruin” (the formulas in this post are computed and tested, not copied from it): https://www.ocw.mit.edu/courses/res-6-012-introduction-to-probability-spring-2018/resources/gamblers-ruin
- ASIC media release 23-011MR: https://asic.gov.au/about-asic/news-centre/find-a-media-release/2023-releases/23-011mr-gold-coast-director-banned-from-providing-financial-services-for-four-years/
Keep reading
- How to vet a forex expert advisor before you trust it
- 7 risk controls every automated trading bot needs
- The 1% rule in trading: losing streaks and drawdowns
- Drawdown and risk of ruin
- Risk simulator and margin calculator
Last reviewed 22 November 2026. Published by ChartriaAI. Questions or corrections: use our contact page, and see how we check our work.
