Valexos
Algorithmic Trading
XAUUSD · Valexos Pro V1.038 Simulator

Martingale Grid Risk Calculator

Defaults match Valexos Pro V1.038 — dynamic grid distance, equity protection, and take-profit exit are all modelled. Click any value to type it directly.

This tool simulates the unrealised loss of a martingale grid strategy on XAUUSD when price moves against the grid. The defaults are calibrated to match Valexos Pro V1.038 — including its dynamic grid distance, equity protection, and take-profit exit. Move any slider — or click any value to type it directly.

What is a “point”?

On XAUUSD, 1 point = $0.01 of price movement. So 100 pts = $1.00 price change, and 10,000 pts = $100. The MT4/MT5 platform reports adverse moves in points — this is the unit used everywhere on this page.

How the grid works

  • Starting lot — size of position #1.
  • Lot multiplier — each next position is N× the previous (1.3× = Valexos Pro default).
  • Grid step — points of adverse move between consecutive entries.
  • Adverse move — how far price has gone against the most recent (largest) entry.

Dynamic grid distance (EA)

Valexos Pro uses a fixed step for the first orderDyn orders (default 5 × 200pt), then expands the step exponentially:step(n) = dynStart × multiplier^(n − orderDyn).

  • Pos 1–5: 200pt each (fixed phase)
  • Pos 6: 200 × 1.2¹ = 240pt
  • Pos 10: 200 × 1.2⁵ ≈ 497pt
  • Pos 20: 200 × 1.2¹⁵ ≈ 3,083pt

Switch this off to model a flat-step grid instead.

Equity Protection cap (EA)

The EA closes all positions the moment unrealised loss hits MaxLossAmount (default $1,200). With this toggle on, the calculator caps displayed loss at the EP threshold — and shows what the loss would have been without the cut-off. Add ~10% for slippage on the emergency close.

Multi-bot note: EP is per-EA-instance. With N bots each on its own account, total cap = N × threshold. On a single shared account, only the first bot to trigger fires.

Take Profit exit (EA)

The grid closes profitably when price recovers to NoLoss + tpPoints. NoLoss is the volume-weighted breakeven of all open positions. The calculator shows:

  • Recovery to TP — points of price rebound needed for the grid to close in profit.
  • Profit at TP — dollar profit if the rebound completes.

Most grids die at position 3–7 with a TP exit — the deep positions on the heatmap are tail events.

Margin Health (broker-side)

  • Used margin — capital locked: lots × 100 × price ÷ leverage
  • Equity — balance minus current unrealised loss.
  • Margin level equity ÷ used margin × 100%. Drops below stop-out → broker force-closes.
  • Distance to margin call — points of further price movement until stop-out triggers.

Risk thresholds

Account-level loss is colour-graded:

  • Safe < 2%
  • Moderate 2–5%
  • High 5–15%
  • Extreme > 15%
  • EP Cap was hit — EA closed grid

Suggested workflow

  • Confirm account size & leverage match your broker.
  • Match EA Risk Controls (Dynamic distance, EP cap, TP exit) to your actual settings.
  • Move open positions & adverse move to model a scenario.
  • Watch the distance to margin call, recovery to TP, and the heatmap.
  • If running multiple bots, increase number of bots to see combined risk.

What this tool still doesn't model

  • Spread, swap, commission — adds ~3–5% to actual losses.
  • Hedging — Buy & Sell grids running simultaneously.
  • Slippage on EP close — assumed at +10% above threshold; real number varies.
  • News & time filters, EOW close, daily close — these reduce the frequency of bad scenarios but not their magnitude.
  • Drawdown reduction algorithm — closes (first loser + last winner) pairs, real-world DD smaller.

This is a teaching tool — not financial advice.

$10,000
0.01
1.30×
200 pts
20
10
100 pts
1
1:500
50%
$4,600
EA Risk Controls — match Valexos Pro V1.038 behaviour
ENABLED
ON
Step expands after orderDyn
5 orders
200 pts
1.20×
ENABLED
ON
Closes all when loss ≥ threshold
$1,200
ENABLED
ON
Close grid at NoLoss + TP pts
1,050 pts
Open positions
10
Total lots
0.4262
$/point exposure
$0.4262
Unrealised loss
-$447.14
4.47% of account
Largest lot (last pos)
0.1060
Total grid span
2,586 pts
dynamic (n−1 steps, max 498 pts)
TP Exit — what the EA needs for a profitable close
Recovery to breakeven
1,049 pts
≈ $10.49 price move
Recovery to TP exit
2,099 pts
BE + 1,050 pts (≈ $20.99)
Profit at TP exit
+$447.51
4.48% of account
TP / Risk ratio
1.00:1
TP gain exceeds current risk
Margin Health — what the broker sees
Used margin
$392.10
3.92% of balance
Equity
$9,552.86
balance − unrealised loss
Free margin
$9,160.75
available for new trades
Margin level
2436%
stop-out at 50%
Distance to margin call
21,954 pts
≈ $219.54 further price move
Loss by position count at current adverse move
Safe <2%
Moderate 2–5%
High 5–15%
Extreme >15%
EP cap hit
Dollar loss
Risk %
EP cap line
Worst-case loss matrix — positions × adverse move (% of account)
<2%
2–5%
5–15%
15–50%
>50% — account blown
EP cap hit
Pos \ Pts501002005001,0002,0003,0005,0007,50010,000
10.0%0.0%0.0%0.1%0.1%0.2%0.3%0.5%0.8%1.0%
20.0%0.0%0.1%0.1%0.3%0.5%0.7%1.2%1.7%2.3%
30.1%0.1%0.1%0.3%0.5%0.9%1.3%2.1%3.1%4.1%
40.2%0.2%0.3%0.5%0.8%1.4%2.0%3.2%4.8%6.3%
50.3%0.4%0.5%0.7%1.2%2.1%3.0%4.8%7.1%9.3%
60.6%0.6%0.7%1.1%1.8%3.0%4.3%6.9%10.1%EP 12.0%
70.9%1.0%1.2%1.7%2.6%4.4%6.1%9.6%EP 12.0%EP 12.0%
81.6%1.7%1.9%2.7%3.8%6.2%8.6%EP 12.0%EP 12.0%EP 12.0%
92.6%2.8%3.1%4.1%5.7%8.9%EP 12.0%EP 12.0%EP 12.0%EP 12.0%
104.3%4.5%4.9%6.2%8.3%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%
1211.0%11.4%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%
15EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%
20EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%EP 12.0%
Position-by-position breakdown
#Lot$/ptStep to nextPoints in lossPosition lossCumulative lossAcct risk
10.0100$0.0100200 pts2686-$26.86-$26.860.27%
20.0130$0.0130200 pts2486-$32.32-$59.180.59%
30.0169$0.0169200 pts2286-$38.63-$97.810.98%
40.0220$0.0220200 pts2086-$45.89-$143.701.44%
50.0286$0.0286240 pts1886-$53.94-$197.641.98%
60.0371$0.0371288 pts1646-$61.07-$258.712.59%
70.0483$0.0483346 pts1358-$65.59-$324.303.24%
80.0627$0.0627415 pts1012-$63.48-$387.773.88%
90.0816$0.0816498 pts598-$48.77-$436.544.37%
100.1060$0.1060100-$10.60-$447.144.47%
Full grid (20 positions): total lots = 6.3017 · total grid span = 18,088 pts · loss at 100pt adverse = $41,858.66 (418.59%) · loss at 10,000pt adverse = $104,245.49 (1042.45%). Largest lot at position 20: 1.4619. Step at position 20: 3,081 pts (dynamic). EP cap caps each bot at $1,200.00 (combined cap $1,200.00).