Skip to content
AlgoVerdict
Menu

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.

1 = grid with equal lots, 2 = martingale (doubling).

Positions in the basket, at most 40.

EUR/USD on a USD account: 10 per standard lot.

Margin & broker

100 = 1:100.

Margin level at which the broker closes. 0 = ignore.

For the margin estimate.

Result

Adverse move to total loss
257.9 pips

≈ 0.0258 in price, with 10 levels open

Adverse move to stop-out
202.9 pips

≈ 0.0203

Lots with the full basket
10.23
Floating loss at the last level
−2,026.00

20.3% of the account

Margin with the full basket
11,253.00

Level by level

Values at the moment each level opens. Greyed out: account already wiped. Margin level below stop-out is marked.

LevelDistance (pips)LotCum. lotsFloating lossBreak-even pullback (pips)MarginMargin level
10.00.010.010.000.011.0090,909%
220.00.020.03−2.006.733.0030,297%
340.00.040.07−8.0011.477.0012,977%
460.00.080.15−22.0014.7165.006,047%
580.00.160.31−52.0016.8341.002,917%
6100.00.320.63−114.0018.1693.001,427%
7120.00.641.27−240.0018.91,397.00699%
8140.01.282.55−494.0019.42,805.00339%
9160.02.565.11−1,004.0019.65,621.00160%
10180.05.1210.23−2,026.0019.811,253.0071%

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

  1. 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%.
  2. 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.
  3. Floating loss when level 10 opens (180 pips): 2,026 USD. Margin is then 11,253 USD, the margin level 71%.
  4. 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.