Martingale in Forex: The Two Limits That End the Sequence
A martingale doubles the position after every loss, so that a single win recovers everything the sequence has given up. Described that way it reads as a rule about probability. In a leveraged account it is a rule about margin, and it stops where the account and the platform refuse the next order rather than where the arithmetic runs out.
Explanations of the system usually end at the observation that doubling is exponential and no balance is infinite. Both statements are true and neither one decides anything. The useful number is how many doublings a specific balance survives, and that number is fixed by two parameters the trader does not set.
Those two parameters are the equity level at which open positions are closed for you, and the largest order size the platform accepts. What follows works through each of them from the rules that define them.
Key takeaways
- A doubling sequence raises the margin requirement at the same rate as the position, so the level at which positions are closed rises while equity is falling.
- For a retail client of a UK firm, the close-out is set by rule: the firm must close open positions once net equity falls below 50 per cent of the margin requirement.
- Net equity in that rule means net profit and loss on open positions plus deposited margin, so an unrealised loss counts against the threshold immediately.
- MetaTrader 5 caps the size of a single deal, and caps separately everything stacked on one side of a symbol, adding orders that are only resting to the position already open.
- An order above either ceiling is rejected with an invalid volume code. The platform does not reduce it to the largest size that would fit.
- Cumulative loss after a run of losing doublings is the first loss multiplied by two to the power of the number of steps, less one: seven steps is 127 times the first loss.
Table of contents
- What a Martingale Sequence Actually Is
- Why the Arithmetic Looks Sound
- The First Limit: The Stop-Out Level
- The Second Limit: The Maximum Lot the Platform Accepts
- How Many Doublings a Balance Actually Survives
- What a Trending Market Does to the Assumption
- The Anti-Martingale Is a Different Decision
- Who This Page Is Not For
- Frequently Asked Questions
What a Martingale Sequence Actually Is
The system comes from a betting rule for an even-money wager. Stake one unit. If it loses, stake two. If that loses, stake four, and continue until a win arrives, at which point the win covers every previous stake and returns the original one unit of profit.
Moved onto a currency pair, the stake becomes position size and the even-money wager becomes a trade with a fixed stop distance and a fixed target. Each losing trade is closed at its stop, and the next trade opens at twice the size with the same distance. One winning trade at step five recovers the four losses beneath it.
Two features of the original rule do not survive the move. A casino stake is paid in full and cannot cost more than itself, while a leveraged position is held with margin and can move against the account by more than the margin posted. And a betting table has no mechanism that closes a bet early, while a trading account does.
Why the Arithmetic Looks Sound
The appeal is real, and it is worth stating precisely rather than dismissing. Each doubling is sized so that the win at step n pays for every loss from step one to step n minus one, plus the original unit. The sequence therefore has a positive expected outcome for anyone who can always place the next trade.
That last clause carries the whole argument. The rule assumes an unlimited number of steps and unlimited funds behind them, and it does not describe what happens when either one runs out, because in its original setting neither one was contested.
A trading account contests both, and it does so long before the balance reaches zero. The account stops accepting the sequence at a point set by two parameters written into the account terms and the platform, and the arithmetic above says nothing about either. Sizing a position with those constraints in view is the subject of sizing a position before entering it.
The First Limit: The Stop-Out Level
A doubling sequence has an effect on free margin that a fixed-size sequence does not. Each step requires margin proportional to the position, so the margin requirement doubles alongside the position while the balance is falling from the realised losses of the previous steps.
That matters because the level at which positions are closed is defined against the margin requirement rather than against a fixed sum.
For a retail client of a UK firm, COBS 22.5.13R in the Financial Conduct Authority Handbook requires the firm to close open positions once net equity falls below 50 per cent of the margin requirement needed to maintain them. The same 50 per cent threshold was set across the European Union by the product intervention measures agreed by the European Securities and Markets Authority.
The threshold is therefore not a fixed number of currency units.
It moves with the size of what is open, and a doubling sequence moves it upward at every step. The rule also defines net equity as the sum of net profit and loss on open positions and deposited margin, which means an unrealised loss on the current position counts against the threshold at once, without waiting for the stop to be hit.
How that level is calculated, which positions are selected when it is breached, and why the result is not a cap on losses are covered on the page explaining how a stop-out level is triggered. What belongs here is the interaction: the sequence pushes the trigger up and the account balance down at the same time.
The Second Limit: The Maximum Lot the Platform Accepts
The second parameter is rarely mentioned in descriptions of the system, and it usually binds first. Every instrument on a platform carries a maximum order size, and the sequence collides with it after a small number of steps because each step doubles.
MetaTrader 5 exposes this as two separate properties of a symbol. One caps a single deal: no individual order on that symbol may be larger. The second is the one a martingale meets sooner, because it is not about any one order at all. It caps the whole of what a trader holds on one side of that symbol at a moment, and an order left waiting to trigger is added to the position already running before the total is tested.
What the platform does at that ceiling decides the outcome. An order above the permitted size is refused with the invalid volume return code rather than reduced to the largest size that would fit, so the step is not placed at all. A separate code covers the case where funds are insufficient. Either way the sequence stops at that step, and the losses already realised remain.
The values themselves differ by instrument, by account type and by firm, so no single figure applies. They are published in the contract specification for each symbol, alongside the minimum size and the step between sizes described in what a lot size represents. Reading the maximum for the specific symbol, before the first trade rather than at step six, is what turns this from a surprise into a known constraint.
How Many Doublings a Balance Actually Survives
This is the number the system stands or falls on, and it is arithmetic rather than opinion. Where each step loses the same distance as the first, the cumulative realised loss after a run of losses is the first loss multiplied by two raised to the number of steps, less one.
| Step in the sequence | Position size, as a multiple of the first | Margin required, as a multiple of the first | Cumulative loss if every step loses, as a multiple of the first loss |
|---|---|---|---|
| 1 | 1 | 1 | 1 |
| 3 | 4 | 4 | 7 |
| 5 | 16 | 16 | 31 |
| 7 | 64 | 64 | 127 |
| 9 | 256 | 256 | 511 |
Read the last column against a starting balance. Where the first trade loses 1 per cent of the balance, the cumulative loss passes the whole balance during step seven. Where it loses 0.5 per cent, that point arrives at step eight. Halving the first position buys exactly one further step, which is the part of the design that resists being fixed by sizing.
Both other columns bind earlier than the last one. The margin requirement in column three is what the 50 per cent close-out is measured against, and the position size in column two is what the maximum order size is measured against, so in practice the sequence ends before the cumulative loss column reaches the balance. The depth reached along the way is the subject of how deep a drawdown runs.
What a Trending Market Does to the Assumption
The sequence assumes that a losing run is a run of independent outcomes, so that each new trade starts fresh and a win is due. Price does not supply that condition. A directional move produces consecutive losses in one direction precisely because the moves are related to one another, not despite it.
A run of losses is therefore evidence about the market rather than a neutral sample. The sequence responds to that evidence by increasing exposure in the direction that has been losing, which is the opposite of what the evidence supports.
The behavioural side compounds it. Each step raises the sum at stake while the account is already in loss, and the effect of that on decisions is covered under why a losing run changes decisions.
The Anti-Martingale Is a Different Decision
The anti-martingale reverses the rule: increase size after a win and reduce it after a loss. The two systems are often presented as a pair, which obscures how differently they interact with the limits above. The same recovery grouping often includes the grid trading strategy, which keeps size constant per level and grows exposure by distance rather than by doubling.
Increasing size after a win means the larger positions are funded by gains already realised, so the margin requirement rises while equity is rising rather than falling. Reducing after a loss means the sequence moves away from both ceilings instead of toward them, and neither the close-out threshold nor the maximum order size is approached by the rule itself.
That is a statement about mechanics and not a recommendation. An anti-martingale gives back part of a winning run on the trade that ends it, and sizing up into a position that then reverses is its own failure mode.
Who This Page Is Not For
This page does not set out parameters that would make a martingale workable, because the two limits it describes are not parameters a trader adjusts. They are set by the firm, the platform and the regulator that authorises the firm.
Anyone looking for a lot progression, a starting size or a step count that survives longer will not find one here. The relationship between size, margin and the close-out threshold is fixed, and every progression that lasts more steps does so by risking less at the start, which reduces the recovery the system exists to produce.
Automated versions raise the same question. An expert advisor executes the sequence faster and does not change what the platform accepts or what the close-out rule requires.
Frequently Asked Questions
What is the martingale strategy in forex?
It is a position sizing rule rather than a method of deciding direction. The trader doubles the size of the next position after every losing trade, so that one win recovers the accumulated losses of the sequence and returns the profit of a single first-size trade. The rule says nothing about entry, exit or instrument.
Why does the martingale strategy fail?
Because the sequence requires an unlimited number of steps and the account supplies a fixed number. Two constraints end it: the level at which the firm closes open positions, which is measured against a margin requirement that doubles with the position, and the maximum order size the platform accepts, which the doubling reaches within a few steps.
How many times can you double down before a margin call?
There is no universal number, because it depends on the size of the first position relative to the balance and on the margin requirement of the instrument. The arithmetic that governs it is fixed: after n losing steps the cumulative loss is the first loss multiplied by two to the power of n, less one, so seven steps costs 127 times the first loss.
Is the martingale strategy banned by brokers?
Position sizing rules are generally not prohibited as such, but the constraints that end the sequence are enforced automatically rather than by permission. An order beyond the maximum volume for the symbol is rejected by the platform, and the close-out obligation applies to the firm regardless of the method that produced the positions.
What is the anti-martingale strategy?
It is the reverse rule: increase position size after a winning trade and reduce it after a losing one. Because size rises only when equity is rising, the margin requirement grows out of realised gains, and a losing run moves the sequence away from the close-out threshold rather than toward it.
Sources checked 12 August 2026. The margin close-out obligation, the definition of net equity as net profit and loss on open positions together with deposited margin, and the requirement that a firm describe how the close-out level is calculated before a client opens a first position were read from the Financial Conduct Authority Handbook, COBS 22.5, rules 22.5.11R, 22.5.13R and 22.5.15R. The equivalent 50 per cent close-out threshold and the leverage ladder applied across the European Union were read from the European Securities and Markets Authority press release announcing its product intervention measures on contracts for differences and binary options. The ceiling on a single deal, the separate ceiling on total one-sided exposure in a symbol and what it counts toward that total, and the invalid volume and insufficient funds return codes were read from the MQL5 reference documentation published by MetaQuotes, in the symbol properties and trade server return codes sections. No order size, close-out percentage or leverage figure on this page was taken from a commercial or secondary source, and no individual firm is named.
Disclaimer: This article is educational only and is not investment advice, and nothing here recommends, endorses or discourages any strategy, provider, platform or instrument. Regulatory requirements and platform parameters differ by jurisdiction, by firm and by account type, and change over time, so the terms that govern any individual account are those set out by the firm that account is held with. Leveraged trading carries risk and the sum at stake can be lost in full.
