Hedging Manager
Aggregates net client exposure per symbol and recommends or hedges it across one or more LP coverage accounts with netting reconciliation, partial close_volume, symbol mapping, spread and margin guards.
What it does
12 capabilities- Incremental net exposure ledger in lots and FX-converted notional per symbol
- Per-symbol thresholds, hedge ratios, min hedge sizes and sign-aware hysteresis
- Netting and hedging coverage account reconciliation by volume delta
- Partial hedge reduction via close_volume to save LP margin
- Multi-LP coverage routing (coverage_routes) with isolated per-LP tracking
- Client-to-LP symbol mapping (symbol_map) with suffix netting
- Event-driven mode with burst throttling on open, update and close
- Max spread guard (max_spread_points) pauses new hedges during spikes
- Coverage margin-level guard pauses new opens while still allowing reductions
- Always flattens residual hedges when target exposure drops to zero
- Reports and optionally closes foreign positions on coverage accounts
- Full state persistence across server restarts and periodic snapshots
How it works
Built for B-book brokers and liquidity providers. The plugin maintains an incremental client exposure ledger per symbol (in lots and FX-converted notional value) across the client groups you choose, automatically excluding coverage accounts and excluded logins. Map client suffixes to LP symbols via symbol_map (for example EURUSD.raw=EURUSD; XAUUSD.pro=XAUUSD), and configure per-symbol thresholds, hedge ratios, smallest hedge sizes and sign-aware hysteresis. In recommend mode it records recommendations and alerts; in auto mode it executes hedges on your default coverage_login or per-symbol Tier-1 coverage accounts (coverage_routes), reducing existing hedges via partial close_volume to save LP margin before opening new orders, splitting by max_order_lots, and flattening residual hedges cleanly when target exposure drops to zero. Built-in safety guards pause opening new hedges during wide spreads (max_spread_points) or low LP coverage margin levels (coverage_min_margin_level) while still allowing risk reduction. Both hedging and netting coverage accounts reconcile accurately by volume delta, with full persistence across restarts.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
mode | text | recommend | off: only report the exposure. recommend: write a recommendation and an alert. auto: send the hedge on the coverage account |
groups | group mask | *,!demo* | Client groups whose positions make the exposure (MT5 group mask). Coverage accounts are never counted |
coverage_login | int | 0 | Login of the default coverage account where hedges are placed (its group routes to the liquidity provider). 0: none, auto mode only recommends |
exclude_logins | text | empty | Logins that are not part of the exposure (for example other hedge or LP accounts), separated by commas |
allowed_symbols | text | empty | Symbols that may be hedged automatically, separated by commas; wildcards allowed. Empty: none (auto mode only recommends) |
default_threshold | decimal | 10.00 | Net client lots of a symbol from which it is hedged (two decimals) |
default_ratio | decimal | 100.00 | Share of the net exposure that is hedged, in percent (two decimals) |
default_min_hedge | decimal | 0.10 | Smallest hedge order or change, in lots (two decimals). Always flattened when target is 0 |
rules | text | empty | Per symbol settings, first match wins: mask=threshold/ratio/min_hedge, separated by semicolons, for example EUR*=5/50/0.5; XAU*=2/100/0.1. A missing part takes the default |
hysteresis | decimal | 20.00 | A hedge stays on until the net falls this many percent below the threshold (two decimals) |
recommend_minutes | int | 15 | Smallest time between two recommendations or residual reports of a symbol while its target stays the same. 0: every check |
max_orders_per_minute | int | 5 | Most hedge orders (opens and closes) sent in any 60 seconds |
max_order_lots | decimal | 50.00 | Largest single hedge order, in lots (two decimals); bigger hedges are split. The symbol's own maximum also applies |
tolerance | decimal | 0.01 | Difference in lots between the expected and the actual hedge that is reported as a mismatch (two decimals) |
close_foreign | bool | 0 | 1: in auto mode close positions on the coverage account that the plugin did not open. 0: only report them |
check_seconds | int | 10 | Smallest time between two timer checks, in seconds. 0: at every timer |
snapshot_minutes | int | 60 | How often the exposure report gets one row per symbol, in minutes. 0: never |
coverage_routes | text | empty | Per-symbol coverage account routing, first match wins: mask=login separated by semicolons, for example XAU*=2001; EUR*=2002. Symbols not matching fall back to coverage_login |
event_driven | bool | 0 | 1: react immediately via the incremental position ledger when a client position opens, updates or closes. 0: timer only |
symbol_map | text | empty | Map client symbols to LP coverage symbols, first match wins: client=lp separated by semicolons, for example EURUSD.raw=EURUSD; XAUUSD.pro=XAUUSD |
max_spread_points | int | 0 | Pause opening new hedges when the LP symbol spread exceeds this many points. 0: off |
coverage_min_margin_level | decimal | 0.00 | Pause opening new hedges on a coverage account when its margin level is below this percent (closing/reducing hedges stays allowed). 0.00: off |
license_key | text | empty | License key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX |
license_server | text | https://plugins.fxopspro.com | License server address |
dealer_login | int | 0 | Manager login with dealer rights that closes or opens positions for the plugin. 0: the plugin only logs |
Release history
- v1.2.0Latest2026-11-24
Fixed netting coverage reconciliation by volume delta, partial hedge reduction via close_volume, isolated multi-LP tracking, consistent 7-column hedge_mismatches schema, zero-target residual flattening, incremental client ledger with event throttling, and FX-converted notional. Removed dangerous same_direction parameter. Added symbol_map, max_spread_points, and coverage_min_margin_level.
- v1.1.12026-11-22
Hardened reconciliation and manifest metadata.
- v1.1.02026-11-21
LP upgrade: added event_driven hedging on client position changes and multi-LP coverage_routes per symbol mask.
- v1.0.02026-11-20
First release: exposure per symbol, thresholds with hysteresis, recommend and auto modes, reconciliation of the coverage account, exposure snapshots.
Liquidity provider



