Skip to content

Free tool

Grid and martingale risk calculator

Every level of a grid or martingale basket: its lot, the margin it ties up, the floating loss, and the step and price where the broker closes everything.

Fills the contract size, an example price, step and leverage. Edit them to your broker’s values.

First position

Each step's lot = the previous lot × this (1 = the same lot every step).

Price distance between two entries, e.g. 0.0020 = 20 pips on EURUSD.

Units per 1.00 lot: 100,000 for forex, usually 100 for gold, 1 for BTCUSD. Check your broker's symbol specification.

Your broker's stop-out margin level, often 50 % or 20 %.

ResultStopped out at step 12See result

Result

Stopped out at step 12

With 12 positions open the account reaches the 50 % stop-out level at 1.028: a move of 0.052 (25.9 steps) against the first entry.

Positions
12
Lots open
2.57
Largest margin
$2,728.88
Worst floating
−$982.00
Get this EA built with hard risk caps

StepPriceLotTotal lotsMarginTotal marginFloatingEquityMargin levelStop-out price
11.0800.010.01$10.80$10.80$0.00$10,000.0092,593 %—
21.0780.020.03$21.56$32.36−$2.00$9,998.0030,896 %—
31.0760.020.05$21.52$53.88−$8.00$9,992.0018,545 %—
41.0740.030.08$32.22$86.10−$18.00$9,982.0011,593 %—
51.0720.050.13$53.60$139.70−$34.00$9,966.007,134 %0.311
61.0700.080.21$85.60$225.30−$60.00$9,940.004,412 %0.602
71.0680.110.32$117.48$342.78−$102.00$9,898.002,888 %0.764
81.0660.170.49$181.22$524.00−$166.00$9,834.001,877 %0.871
91.0640.260.75$276.64$800.64−$264.00$9,736.001,216 %0.940
101.0620.381.13$403.56$1,204.20−$414.00$9,586.00796 %0.982
111.0600.581.71$614.80$1,819.00−$640.00$9,360.00515 %1.011
121.0580.862.57$909.88$2,728.88−$982.00$9,018.00330 %1.028

How it is calculated

  1. The first position opens at the entry price. Each further position opens one step further against it (lower for a buy grid, higher for a sell grid), with the previous lot × the multiplier. A multiplier of 1 is a plain grid; above 1 it is a martingale.
  2. Floating loss at a step = the sum, over the open positions, of lot × contract size × the distance from its entry to the current price.
  3. The stop-out price is where equity (balance + floating) falls to the stop-out level × the margin in use. The calculator solves it between each pair of levels, so the stop-out step is the last level that opens before it.
  4. Before each new position, the free margin (equity − margin in use) must cover its margin; when it cannot, the platform refuses the order and the grid stops growing.

What the model assumes

  • The symbol is quoted in the account currency (EURUSD, GBPUSD, XAUUSD or BTCUSD on a USD account): one lot moves by the contract size per 1.0 of price.
  • Margin of a position = lot × contract size × open price ÷ leverage, fixed when it opens. Brokers that charge margin differently (fixed margin per lot, other currencies, hedged margin) give other numbers.
  • No spread, commission or swap. Lots are rounded to the 0.01 volume step, never below 0.01.
  • Everything is calculated in your browser; nothing you type is sent.

The table is arithmetic on your inputs, not a forecast: it shows how much adverse movement a basket can take, not how often that movement happens.