The Martingale strategy
The most popular staking plan in automated trading, and the simplest to grasp: raise your stake after each loss so that one win recovers the entire run and puts you a unit ahead. Here is exactly how it behaves, how far a given balance stretches, and how to cap the downside properly.
Load Martingale in one click →
How it works
You pick a starting stake and a multiplier. Every time a trade loses, the next stake is multiplied. Every time a trade wins, the stake resets to the starting amount. With a multiplier of 2, a losing run of 1, 2, 4, 8 USD is recovered entirely by the win on the 16 USD trade.
Key parameters
| Initial stake | The starting trade amount. The stake reverts to this after a win, or when it would exceed the maximum stake. |
|---|---|
| Multiplier | How much the stake grows after a loss. Must be greater than 1. Two is the classic value. |
| Profit threshold | The bot stops trading once total profit exceeds this amount. |
| Loss threshold | The bot stops trading once total loss exceeds this amount. |
| Maximum stake | The most you are willing to stake on a single trade. If the next stake would exceed it, the stake resets to the initial amount instead. Optional, and the single most important risk control here. |
A worked example
- Start with an initial stake of 1 USD.
- Set the Martingale multiplier to 2.
- If the first trade loses, the next stake automatically doubles to 2 USD, and keeps doubling after every loss.
- As soon as a trade wins, the stake resets to 1 USD.
Now add a maximum stake of 3 USD. After losses at 1 USD and 2 USD, the next step would be 4 USD — above the cap — so the stake resets to 1 USD instead. That protects the balance, but it also means the 3 USD already lost is never recovered. This trade-off is the whole story of Martingale: you can cap the damage, or you can keep the recovery promise, but not both.
How long your balance lasts
If you do not set a maximum stake, you can calculate how many consecutive losses your loss threshold absorbs:
R = logm( (B / s) × (m − 1) + 1 )
- R — the number of consecutive losing rounds you can sustain
- B — your loss threshold
- s — the initial stake
- m — the Martingale multiplier
With a loss threshold of 1,000 USD, an initial stake of 1 USD and a multiplier of 2, R comes to about 9.97. In other words, ten consecutive losses cost 1,023 USD, which breaches the 1,000 USD threshold and stops the bot. A thousand dollars buys you ten losses in a row — that is the real answer to "how much do I need to run Martingale safely".
The trade-off you're making
The strategy assumes you can always afford the next double. You cannot. Stake size grows exponentially while your balance grows linearly at best, so the losing run that breaks you is not a question of whether but of when. On a contract that wins roughly half the time, ten consecutive losses will show up around once every thousand trades — an afternoon of automated trading.
It is also worth being clear that losses do not make a win more likely. Deriv's synthetic indices are generated by a random number generator, so every trade is independent of the last. Martingale does not improve your odds; it reshuffles when you pay.
Before you run this with real money, put your exact stake, multiplier and thresholds through the backtester. It reports the probability of ruin over thousands of simulated runs. For most Martingale settings people choose, that number is uncomfortably high.
Profit and loss thresholds
Both thresholds stop the bot automatically. If you set a profit threshold of 100 USD and total profit across all trades exceeds it, the bot stops. The loss threshold works the same way going down. On a Martingale bot the loss threshold is not optional — without it the strategy has no natural stopping point.
Run it in Binary Pro
- Open the Bot Builder and choose Quick strategy > Martingale.
- Select the market and trade type, then set your initial stake, multiplier and thresholds.
- Hit Run to load the blocks onto the workspace, where you can adjust anything before starting.
- Or download the ready-made version from the free bots page.
Related: D'Alembert is the gentler alternative that adds a fixed unit rather than multiplying. Reverse Martingale inverts the rule and raises the stake after wins instead.
Illustrative figures are rounded. A 1 USD stake does not return exactly 1 USD on a successful trade — payouts vary by contract and market.
Build and run it yourself
Binary Pro is free to use, runs in the browser, and works on a Deriv demo account.
Open the bot builder