Launch pricing: VRD Complete $149 while we gather our first reviews. See the price steps

Articles · Virtual Risk Desk · Published 2026-11-10 · Updated 2026-11-10

Grid EA Drawdown Maths: Levels, Pips to Wipeout, Margin

Short answer: A grid EA's floating loss is the sum of every open level's lots × pips under water × pip value. With a lot multiplier above 1.0, that total grows geometrically, so the account goes in one long move. In our worked EURUSD example, a doubling grid starting at 0.01 lots every 20 pips hits zero after about 205 pips on $5,000. A tenfold bigger account adds only about 65 pips. The fix is a hard cap on levels or lots, sized to a loss you can take.

This is the worked-maths companion to Grid and martingale EAs: why smooth equity curves fail. That article covers how to spot a grid from its stats. This one puts numbers on what it can do to your account, so you can check any grid before it trades.

All figures are illustrative examples from stated assumptions. They are not backtests, not live results and not a forecast for any real EA.

Assumptions used throughout: - EURUSD at 1.0800 on a USD account, $10 per pip per 1.00 lot, contract size 100,000. - Starting lot 0.01 unless stated. Lots rounded to the nearest 0.01, minimum 0.01. - A new level opens every 20 pips against the first entry, all in the same direction. - No spread, commission, swap or slippage. Real costs make every figure below worse.

Key takeaways

  • Lot at level k = starting lot × multiplier^(k−1). On a ×2 grid, each new order is bigger than all the earlier ones put together.
  • Account size barely moves the wipeout point on a martingale. The multiplier and the step matter far more.
  • At low leverage, margin ends a grid before the equity does. At high leverage, the grid keeps adding and the loss gets bigger.
  • A cap on levels or total lots is the only thing that turns the loss from a curve into a straight line.

The three formulas you need

Lot(k)          = StartLot × Multiplier^(k−1)
FloatingLoss(D) = Σ Lot(k) × (D − (k−1) × Step) × PipValue    (every level with (k−1) × Step ≤ D)
Wipeout         = the D where Balance − FloatingLoss(D) = 0

D is the distance in pips from the first entry to the current price. Each level is under water by D minus the distance at which it opened.

Two more give you the feel of the basket:

Basket $/pip    = TotalOpenLots × PipValue
AverageEntry    = Σ (Lot(k) × (k−1) × Step) ÷ TotalOpenLots

The basket closes in profit once price comes back past the average entry plus the EA's target. On a ×2 grid the average entry trails the latest order by less than one step: 14.7 pips at level 4, 18.1 at level 6 and 19.4 at level 8. That's why a small bounce always seems to rescue it, and why the loss is so large when no bounce comes.

Worked example 1: lots and floating loss by level

Floating loss is measured at the moment each level opens. Basket $/pip is what every further pip against you costs.

Level Distance ×1.0 lot / total / loss ×1.5 lot / total / loss ×2.0 lot / total / loss ×2.0 basket $/pip
1 0 0.01 / 0.01 / $0 0.01 / 0.01 / $0 0.01 / 0.01 / $0 $0.10
4 60 0.01 / 0.04 / $12 0.03 / 0.08 / $18 0.08 / 0.15 / $22 $1.50
6 100 0.01 / 0.06 / $30 0.08 / 0.21 / $60 0.32 / 0.63 / $114 $6.30
8 140 0.01 / 0.08 / $56 0.17 / 0.49 / $166 1.28 / 2.55 / $494 $25.50
10 180 0.01 / 0.10 / $90 0.38 / 1.13 / $414 5.12 / 10.23 / $2,026 $102.30
12 220 0.01 / 0.12 / $132 0.86 / 2.57 / $982 20.48 / 40.95 / $8,166 $409.50

Check one row yourself. At level 6 on the ×2 grid the open lots are 0.01, 0.02, 0.04, 0.08, 0.16 and 0.32, opened at 0, 20, 40, 60, 80 and 100 pips. At 100 pips they are under water by 100, 80, 60, 40, 20 and 0 pips:

(0.01×100 + 0.02×80 + 0.04×60 + 0.08×40 + 0.16×20 + 0.32×0) × $10
= (1.0 + 1.6 + 2.4 + 3.2 + 3.2 + 0) × $10 = $114

What it means: from level 6 to level 12 the fixed-lot grid's loss rises 4.4×. The doubling grid's rises 72×. On the ×2 grid each order equals all the earlier same-direction lots plus one starting lot. So the last order alone always carries just over half the basket's exposure.

Worked example 2: pips to wipeout at three balances

Wipeout here means equity reaches zero. The broker's stop-out comes earlier (see example 4), so treat these as the most generous case.

Balance ×1.0 grid ×1.5 grid ×2.0 grid
$1,000 622 pips (32 levels, 0.32 lots) 221 pips (12 levels, 2.57 lots) 160 pips (8 levels, 2.55 lots)
$5,000 1,404 pips (71 levels, 0.71 lots) 298 pips (15 levels, 8.74 lots) 205 pips (11 levels, 20.47 lots)
$10,000 1,990 pips (100 levels, 1.00 lot) 331 pips (17 levels, 19.69 lots) 225 pips (12 levels, 40.95 lots)

Check one cell. On $1,000 at ×2, eight levels are open from 140 pips with 2.55 lots and a $494 floating loss. Each further pip costs $25.50. The remaining $506 lasts 506 ÷ 25.50 ≈ 19.9 pips, so the account goes at about 160 pips, just before level 9 would open.

What it means: - Ten times the money buys the doubling grid about 65 pips. It buys the fixed-lot grid about 1,370. - A 200-pip move on EURUSD isn't rare. It can happen in a week of steady trend, and on a news-driven week faster still. - Adding money to a martingale mostly makes the eventual loss bigger.

Worked example 3: starting lot and step spacing

Same $5,000 account, ×2 multiplier.

Change Pips to wipeout Levels open Open lots at wipeout
Start 0.01, step 20 (baseline) 205 11 20.47
Start 0.02, step 20 185 10 20.46
Start 0.05, step 20 160 8 12.75
Start 0.01, step 15 160 11 20.47
Start 0.01, step 30 289 10 10.23
Start 0.01, step 40 369 10 10.23

What it means: doubling the starting lot costs about one level, roughly 20 pips. Widening the step helps more, because every level then needs a bigger move to open. But a wider step also means each basket takes longer to close, so the EA trades less often. Neither setting changes the shape. It only moves the cliff.

Worked example 4: margin at 1:30, 1:100 and 1:500

Margin      = TotalOpenLots × 100,000 × 1.0800 ÷ Leverage
MarginLevel = Equity ÷ Margin × 100%

$5,000 account, ×2 grid, measured as each level opens.

Level (distance) Open lots Equity Margin at 1:30 / level Margin at 1:100 / level Margin at 1:500 / level
6 (100 pips) 0.63 $4,886 $2,268 / 215% $680 / 718% $136 / 3,591%
7 (120 pips) 1.27 $4,760 $4,572 / 104% $1,372 / 347% $274 / 1,735%
8 (140 pips) 2.55 $4,506 $9,180 / 49% $2,754 / 164% $551 / 818%
9 (160 pips) 5.11 $3,996 $18,396 / 22% $5,519 / 72% $1,104 / 362%
10 (180 pips) 10.23 $2,974 $36,828 / 8% $11,048 / 27% $2,210 / 135%

With a typical 50% stop-out level: - 1:30: the 8th order needs $9,180 of margin against $4,506 of equity. Either it's refused or the account is at stop-out at about 140 pips, with $494 lost. - 1:100: the grid reaches level 10 and stops out at about 180 pips, with roughly $2,000 lost. - 1:500: the grid keeps adding and stops out at about 198 pips, with roughly $3,900 lost, close to the full wipeout.

What it means: low leverage is a crude brake. It ends the grid earlier with a smaller loss. High leverage removes the brake. Our capital guide has the same margin formula for single-position EAs.

Worked example 5: what a cap does

Now cap the same ×2 grid at 6 levels (0.63 lots). After level 6 it adds nothing, so the loss grows at a flat $6.30 a pip:

Cap on total lots     = StartLot × (2^MaxLevels − 1)      e.g. 0.01 × (2^6 − 1) = 0.63
Loss beyond the cap   = LossAtCap + CapLots × PipValue × (D − CapDistance)
Adverse move Uncapped ×2 floating loss Capped at 6 levels
100 pips $114 $114
150 pips about $750 $429
200 pips $4,072 $744
300 pips account gone $1,374

Now put loss bands on it. Say the EA has $5,000 of operating capital with warn, intervene and abandon bands at 20%, 26% and 32%: $1,000, $1,300 and $1,600.

Band Uncapped ×2: pips / open lots Capped at 6 levels: pips ×1.5 uncapped: pips
Warn $1,000 160 / 2.55 241 221
Intervene $1,300 166 / 5.11 288 232
Abandon $1,600 172 / 5.11 336 243

What it means: - Uncapped, the bands are only 12 pips apart. There's no time to act between warning and abandon. - Capped, they're 48 pips apart, and the loss per pip stays at $6.30. - Slippage scales with lots. If the abandon close fills 10 pips late, the uncapped basket loses another $511 (5.11 × $10 × 10). The capped one loses $63.

How Virtual Risk Desk fits

VRD Guardian is built for this kind of limit. You can set a lot cap for each EA. It warns at 80% of the cap and deletes that EA's pending orders at 100%. That only stops grids that place their next level as a pending order. A grid that sends market orders needs its own level cap in its settings. On a ×2 grid, the 80% warning can be skipped: the basket jumps from 0.31 to 0.63 lots, 49% to 100% of a 0.63 cap, in one order.

Guardian also runs drawdown bands per EA (defaults 20%, 26% and 32% of the EA's operating capital), with a margin alert below 120%. At the abandon level it closes that EA's positions only if auto-close is turned on. It's off by default. Guardian works per EA. It has no account-wide equity stop or daily loss limit. See VRD Guardian on the MQL5 Market.

Guardian makes a best-effort attempt to limit losses using rules you set in advance. It cannot guarantee that losses will be avoided or that an account can be rescued. Gaps, slippage, broker or connectivity failures can prevent rules executing. Trading carries a high risk of loss.

To see what a grid has really been doing, track it on its own magic number with VRD Insight, free on the MQL5 Market. Insight's drawdown comes from closed trades, so watch floating loss on the account as well.

Checklist: before a grid EA trades your money

  1. Read the inputs. Note the starting lot, the multiplier (it may be called lot factor, lot exponent or recovery), the step, and any cap on levels or lots.
  2. Build the level table from example 1 for your symbol's pip value. Write down total lots and $/pip at the cap.
  3. Find the wipeout distance for your balance, then the stop-out distance for your leverage and your broker's stop-out level.
  4. Compare it with real moves. Look up the biggest one-way move on your symbol in recent years. If it's bigger than your stop-out distance, you've found the scenario that ends the account.
  5. Set a hard cap on levels or total lots. Write the cap formula down: StartLot × (2^MaxLevels − 1) on a doubling grid.
  6. Pick a basket loss limit you'd accept as a closed loss, and check it sits at a sensible distance from your warning level.
  7. Know your manual exit. Have a kill-switch routine ready in case an automated limit doesn't fire.
  8. One grid per currency. Two grids on correlated pairs are one bigger grid. See running multiple EAs on one MT5 account.

What to do next

  • Today: for each grid or martingale EA, write down the starting lot, max levels and cap. Work out last-order $/pip and whole-basket $/pip.
  • This week: run the level and margin tables for your own balance and leverage. If the cap is missing, add one or retire the EA.
  • Before going live: test the EA in the Strategy Tester at the lot you'll trade. Read the equity drawdown, not just the balance line. Our guide to reading MT5 backtest drawdown explains the figures.

Further reading on MQL5


Risk disclaimer: Trading forex and CFDs with leverage carries a high risk of losing money quickly, and you can lose all of your capital. Grid, martingale and recovery strategies can lose a large part of an account, or all of it, in a single move. Every figure in this article is illustrative arithmetic from stated assumptions. None of it is a backtest, a live result, a forecast or a performance claim. Past performance does not guarantee future results. This is not financial advice. Virtual Risk Desk tools are monitoring and risk software. They do not guarantee profits or prevent losses.

Frequently asked questions

How do you calculate the drawdown of a grid EA?

Add up every open level: lot × pips that level is under water × pip value per lot. Lot at level k is the starting lot × multiplier^(k−1). The total is the floating loss, and the account is gone when it equals the balance, or earlier at the broker's stop-out.

How many pips can a martingale grid survive?

It depends on balance, starting lot, multiplier and step. In our illustrative EURUSD example, a doubling grid from 0.01 lots with a 20-pip step goes to zero after about 160 pips on $1,000, 205 pips on $5,000 and 225 pips on $10,000.

Does a bigger account make a martingale grid safe?

No. Doubling lots grows exposure faster than any deposit. In the example, going from $1,000 to $10,000 buys a doubling grid about 65 more pips. A fixed-lot grid gets about 1,370 more pips from the same extra money.

What is a safe lot multiplier for a grid EA?

There is no safe multiplier, only a known worst case. A multiplier of 1.0 grows risk in a straight line. Anything above 1.0 grows it geometrically. What makes the worst case known is a hard cap on levels or total lots, plus a loss limit you can accept as a closed loss.

How does margin affect a grid EA?

Every new level needs margin. On a doubling grid at 1:30 leverage, our $5,000 example runs out of margin at about 140 pips, long before the equity is gone. Higher leverage lets the grid keep adding, which delays the stop-out but makes the eventual loss bigger.

Can a lot cap stop a grid EA blowing up an account?

A cap on total lots stops the basket growing, which turns an exponential loss into a straight-line one. It doesn't stop losses on positions already open. You still need a basket loss limit, and execution through gaps and slippage isn't guaranteed.

One EA blowup costs more than the whole suite.

VRD Complete contains single-EA blowups and frees capital you have parked as idle buffers. $149 at launch pricing.

Get VRD Complete on MQL5How it works
Trading forex and CFDs carries a high risk and you can lose some or all of your capital. VRD tools are risk management and analysis software. They do not eliminate risk, guarantee profits, or guarantee that any account will be protected or recovered. Actions may execute late or not at all in fast markets, gaps or connection loss. Backtests and simulations are hypothetical. Past performance is not indicative of future results.
VRD Complete $149 launch priceGet it on MQL5