MetaTrader 5 · Hedging · XAUUSD

Two engines.
One loom.

Market Weaver X runs independent BUY and SELL grid baskets on the same symbol — each with its own ladder, its own stepped lot progression and its own basket exit. No indicators. No predictions. Pure mechanics.

Checking EA connection…
2
Fully independent engines, zero shared trading state
1/ tick
Maximum new grid levels per engine, per tick
L49
Highest level at MaxTrades 50 — L50 can never exist
8
Optional safety modules, every one off by default
The mechanism

Every basket is woven from the same four moves.

Nothing here guesses where gold goes next. Price moves, the ladder answers, and the whole basket is released together.

01

Anchor

With no basket open, each engine enters L0 at market and records the real execution price.

L0 · filled
02

Weave

Price moves against the basket by one grid distance → exactly one more level. BUY measures on Ask, SELL on Bid.

03

Step up

Lots grow in steps, never exponentially: Start + Step × ⌊L ÷ PerStep⌋

04

Release

When the combined basket reaches its target, every position closes together and a fresh L0 begins.

+25.80
Architecture

Two virtual EAs living inside one.

The BUY basket can hold forty positions while SELL closes and restarts five times. Neither engine can see, count or close the other's trades.

BUY engine

MAGIC 2222

Adds a level each time price falls a full grid distance below its deepest entry.

4634.004632.004630.004628.004626.00 next BUY ↓
  • Own magic number
  • Own grid distance
  • Own lot progression
  • Own basket P/L
  • Own profit target
  • Own MaxTrades
  • Own cooldown timer
  • Own drawdown guard

SELL engine

MAGIC 1111

The exact mirror: adds a level each time price rises a full grid distance above its highest entry.

4634.004636.004638.004640.004642.00 next SELL ↑
  • Own magic number
  • Own grid distance
  • Own lot progression
  • Own basket P/L
  • Own profit target
  • Own MaxTrades
  • Own cooldown timer
  • Own drawdown guard
Stepped lot progression

See exactly what a full ladder commits.

This uses the same formula as the EA. Move the sliders to see how fast volume builds, and how much a basket is down by the time its last level fills.

Lot size per level

hover a bar
Highest level
L49
Final lot
0.10
Total volume
2.75
P/L at last fill
−0
Gold with pip = 0.01 and a 100 oz contract. The P/L column is in account currency (cents on a cent account) and assumes the price sits exactly at the deepest level.
Built for the ugly days

Restarts, gaps and rejected orders are handled, not hoped away.

State recovery first

On every start the EA scans open positions before it trades anything. A basket of 22 BUY and 7 SELL comes back as exactly that — no duplicate L0, no level reset.

Duplicate protection

One level per engine per tick. After every confirmed fill the book is re-read, so the anchor and next trigger are recomputed before another level is even considered.

Controlled gap policy

If price jumps across several levels at once, the grid fills one level per tick and recalculates in between — never a burst of orders into a fast market.

Partial-close aware

If 17 of 20 positions close and 3 fail, the basket is not treated as closed. It stays in CLOSING and keeps retrying, and no new cycle starts until the count really reaches zero.

Spread-true grid

BUY distance is measured Ask-to-Ask and SELL Bid-to-Bid, so the spread never quietly compresses the ladder. The grid anchors to the deepest entry, not the newest.

Hedging-aware

Netting accounts merge opposite positions, so they're detected at start-up. The EA refuses to run both engines on netting unless you explicitly override it.

Safety layer

Protection you switch on, one module at a time.

The grid runs unchanged with every module off. Switch on only the ones you want: safety exits always run before any new entry, and the spread filter never blocks an exit.

All eight ship disabled by default
BUY basket protectionCloses the BUY basket only, at a set drawdown
SELL basket protectionCloses the SELL basket only — BUY carries on
Account emergency stopCloses this EA's trades and sets a lock that survives restarts
Daily loss limitRealized EA P/L by default; blocks new entries
Spread filterHolds new entries only — exits always pass
Independent cooldownsSeparate timers for BUY and SELL
Maximum lot guardRefuses any level above your lot cap
Total volume ceilingA separate gross volume cap per basket
Live telemetry

Watch both baskets breathe, in real time.

Positions, basket P/L, weighted averages, the next grid price and every safety state. Pushed from the EA every few seconds.

Open the live dashboard
Private · password protected · read-only