MT5 · Non-netting ledger topology · XAU/USD spot

Bilateral inventory
lattice replication.

Market Weaver X instantiates two orthogonal, path-dependent inventory processes on a single underlying: each a discretely monitored, adverse-excursion-triggered accretion scheme on a fixed-mesh price lattice, carrying a piecewise-constant affine notional schedule and an absolute first-passage liquidation barrier on its aggregate mark-to-market. No state-space filtering. No directional forecast of the drift term. A purely endogenous, signal-free control law.

Resolving ingest channel…
2
Orthogonal state machines with disjoint position ledgers — zero cross-inventory coupling
1/ quote
Upper bound on lattice accretions per process per quote-arrival event
ℓ49
Terminal lattice index at cardinality ceiling N̄ = 50 — ℓ = N̄ is unreachable by construction
8
Exogenous risk overlays, each latent at initialisation
Formalism

Every inventory cycle is a composition of four operators.

The control law is invariant to the drift μ of the underlying. State transitions are driven exclusively by realised adverse excursion relative to the extremal fill, and each cycle terminates on an absolute P&L first-passage event.

01

Initialisation 𝒜₀

On an empty ledger each process routes an immediate marketable order at ℓ = 0 and persists the realised fill — not the requested quote — as the lattice origin.

ℓ0 · κ₀
02

Accretion ℓ → ℓ+1

Each adverse excursion of one lattice quantum Δκ beyond the extremal fill admits exactly one increment. Λ⁺ references the offer and Λ⁻ the bid, so the half-spread never contaminates Δκ.

03

Escalation q(ℓ)

Notional follows a non-geometric step function, affine in the tranche index and never multiplicative: q(ℓ) = q₀ + η·⌊ℓ / τ⌋

04

Liquidation 𝔯Θ

When the aggregate mark-to-market of the ledger, inclusive of swap carry, first crosses the absolute barrier Θ, the entire inventory is unwound together and the process re-initialises at ℓ = 0.

≥ Θ
Bilateral topology

Two virtual controllers on one execution substrate.

Λ⁺ may carry forty open tranches while Λ⁻ completes five full liquidation cycles. Neither process can observe, enumerate or unwind the other's inventory.

Λ⁺ process

IDENTITY KEY κ⁺

Accretes one tranche each time the offer declines one full lattice quantum below the infimum of its fill prices.

κ₀κ₁κ₂κ₃κ₄ κ⁺(ℓ+1) ↓
  • Disjoint identity key
  • Independent Δκ
  • Independent q(ℓ) schedule
  • Independent MTM functional
  • Independent barrier Θ
  • Independent N̄
  • Independent refractory period
  • Independent drawdown stop

Λ⁻ process

IDENTITY KEY κ⁻

The exact reflection: accretes one tranche each time the bid rises one full lattice quantum above the supremum of its fill prices.

κ₀κ₁κ₂κ₃κ₄ κ⁻(ℓ+1) ↑
  • Disjoint identity key
  • Independent Δκ
  • Independent q(ℓ) schedule
  • Independent MTM functional
  • Independent barrier Θ
  • Independent N̄
  • Independent refractory period
  • Independent drawdown stop
Notional schedule

Quantify the terminal gross exposure of a saturated lattice.

Identical closed form to the production controller. Perturb the parameters to observe the convexity of cumulative notional in ℓ, and the worst-case mark-to-market at terminal accretion.

q(ℓ) over lattice index ℓ

probe an ordinate
Terminal index ℓmax
ℓ49
q(ℓmax)
0.10
Σ q(ℓ) gross notional
2.75
MTM at terminal fill
−0
Parameterised for XAU/USD with pip = 0.01 and a 100 oz contract multiplier. MTM is in account currency (cent units on cent-denominated accounts), evaluated at the instant the underlying sits exactly on the terminal lattice node.
Operational invariants

Discontinuities, restarts and execution rejects resolve deterministically.

Idempotent state reconstruction

At initialisation both ledgers are rebuilt from the live position book before any order is routed. A book of 22 Λ⁺ and 7 Λ⁻ tranches is recovered as exactly that — no spurious ℓ = 0, no index reset.

Event-time accretion throttling

At most one increment per process per quote-arrival event. After every confirmed fill the book is re-read and the extremal anchor and trigger node κ(ℓ+1) are recomputed before any further increment is admissible.

Gap-regime discipline

When the underlying traverses several lattice nodes discontinuously, accretion proceeds one node per event with full re-evaluation between — never a burst of orders into a thin book.

Non-atomic liquidation tolerance

If 17 of 20 tranches unwind and 3 are rejected, the cycle is not deemed terminated: the ledger stays in a re-entrant CLOSING state and retries until its cardinality is exactly zero.

Side-consistent quote referencing

Λ⁺ spacing is measured offer-to-offer and Λ⁻ bid-to-bid, so the spread cannot compress Δκ. The lattice anchors to the extremal fill, not the most recent one.

Ledger-topology validation

Netting accounts collapse opposing exposure into one net position. This is detected at initialisation, and the bilateral mode refuses to run there without an explicit override.

Exogenous overlays

Risk constraints are composable, not intrinsic.

The control law is invariant with every overlay latent. Activated overlays are evaluated strictly before any accretion, and the microstructure gate never inhibits a liquidation.

All eight latent at initialisation
Λ⁺ drawdown stopUnwinds the long ledger only, at a specified adverse MTM
Λ⁻ drawdown stopUnwinds the short ledger only — Λ⁺ is unaffected
Account circuit breakerFlattens the controller's inventory and sets a latch that persists across restarts
Realised-loss budgetSession-level realised P&L floor; inhibits new accretion
Microstructure spread gateSuppresses accretion under wide spreads — liquidation always passes
Refractory periodsIndependent post-cycle latency per process
Notional quantum capRejects any tranche above the permitted q
Gross notional ceilingAggregate volume bound per ledger
Telemetry plane

Observe both ledgers evolve in real time.

Ledger cardinality, aggregate MTM, volume-weighted average cost, the next trigger node κ(ℓ+1) and every overlay state, streamed from the controller every few seconds.

Enter the telemetry plane
Read-only telemetry