Free calculator · As of 8 Nov 2026
Martingale & grid risk calculator
A grid looks harmless in quiet weeks. The calculator shows level by level how quickly lots, floating loss and margin grow, and which adverse move takes your account to zero.
Result
- Adverse move to total loss
- 257.9 pips
- Adverse move to stop-out
- 202.9 pips
- Lots with the full basket
- 10.23
- Floating loss at the last level
- −2,026.00
- Margin with the full basket
- 11,253.00
≈ 0.0258 in price, with 10 levels open
≈ 0.0203
20.3% of the account
Level by level
Values at the moment each level opens. Greyed out: account already wiped. Margin level below stop-out is marked.
| Level | Distance (pips) | Lot | Cum. lots | Floating loss | Break-even pullback (pips) | Margin | Margin level |
|---|---|---|---|---|---|---|---|
| 1 | 0.0 | 0.01 | 0.01 | 0.00 | 0.0 | 11.00 | 90,909% |
| 2 | 20.0 | 0.02 | 0.03 | −2.00 | 6.7 | 33.00 | 30,297% |
| 3 | 40.0 | 0.04 | 0.07 | −8.00 | 11.4 | 77.00 | 12,977% |
| 4 | 60.0 | 0.08 | 0.15 | −22.00 | 14.7 | 165.00 | 6,047% |
| 5 | 80.0 | 0.16 | 0.31 | −52.00 | 16.8 | 341.00 | 2,917% |
| 6 | 100.0 | 0.32 | 0.63 | −114.00 | 18.1 | 693.00 | 1,427% |
| 7 | 120.0 | 0.64 | 1.27 | −240.00 | 18.9 | 1,397.00 | 699% |
| 8 | 140.0 | 1.28 | 2.55 | −494.00 | 19.4 | 2,805.00 | 339% |
| 9 | 160.0 | 2.56 | 5.11 | −1,004.00 | 19.6 | 5,621.00 | 160% |
| 10 | 180.0 | 5.12 | 10.23 | −2,026.00 | 19.8 | 11,253.00 | 71% |
All results are pure formulas from your inputs, calculated in your browser. Nothing is stored or sent. The calculators are for guidance only and are not investment advice; trading involves significant risk of loss.
How the calculator works
The calculator looks at one basket in one direction, with price running against it without a pullback. Level 1 is the first position; each further level opens one grid step deeper in loss, with the previous lot size times the multiplier, rounded to the broker’s lot step. A multiplier of 1 is a classic grid, 2 a martingale.
The floating loss at a level is the sum over all open positions of lots × distance in pips × pip value. After the last level it keeps growing by the cumulative lots per pip until it has eaten the balance. Margin is an estimate: lots × contract size × price / leverage.
Formulas
- Lot at level k
- lot_k = start lot × multiplier^(k−1)
- Floating loss at level k
- Σ lot_j × (distance_k − distance_j) × pip value
- Break-even pullback
- Σ lot_j × (distance_k − distance_j) / Σ lot_j
- Margin
- Σ lots × contract size × price / leverage
- Move to total loss
- D = (balance / pip value + Σ lot_j × distance_j) / Σ lot_j
Assumptions and limits
- No pullbacks and no take-profits: the worst case a grid EA really faces in a strong trend.
- Spread, commission, swap and slippage are not included; all of them make it worse. On weekend gaps the loss jumps without intermediate levels.
- Margin is calculated in the quote currency and assumed to be the account currency (e.g. EUR/USD on a USD account).
- Stop-out: when the margin level falls below the broker’s stop-out value, positions are closed by force, usually before the theoretical total loss.
Worked example
- 10,000 USD account, start 0.01 lot, multiplier 2, 20 pip step, 10 levels, pip value 10 USD per lot, leverage 1:100, price 1.10, stop-out 50%.
- Lots per level: 0.01 · 0.02 · 0.04 … 5.12. At the tenth level 10.23 lots are open in total, from a first position of 0.01.
- Floating loss when level 10 opens (180 pips): 2,026 USD. Margin is then 11,253 USD, the margin level 71%.
- From there every further pip costs 102.30 USD. Stop-out at 50% after 202.9 pips, theoretical total loss after a 257.9 pip adverse move: 0.0258 in EUR/USD, an ordinary weekly range.
Frequently asked questions
How does a martingale EA work?
After every loss or every grid step against the position it opens a larger position, typically with double the lot size. Even a small pullback brings the whole basket into profit. The price is exponentially growing risk: after ten doublings the position is 512 times the size of the first.
How much adverse movement can a grid survive?
That depends on balance, start lot, multiplier, step and number of levels. In the worked example 258 pips in EUR/USD are enough to wipe out a 10,000 USD account starting at 0.01 lot. Enter your EA settings to see your own figure.
Why does a grid EA backtest look so good?
Because most periods move sideways and the basket almost always closes with a small profit. Drawdown is often measured on closed trades only, so the large floating loss just before the pullback does not show. One uninterrupted trend is enough for a total loss.
What is a stop-out?
The margin level (equity / used margin) at which the broker closes positions by force, often 50%. On grid and martingale accounts the stop-out usually comes before the theoretical total loss, and the loss is still almost complete.
Are grid and martingale allowed at prop firms?
FundedNext explicitly prohibits grid trading. FTMO and The5ers list no separate ban, but rules against overexposure or bulk trading can hit such EAs. In practice they usually fail the daily limit first, because floating loss counts on an equity basis.