Server pluginLiquidity providerv1.2.022 options Live demo

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.

Get a licenseDownload

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.

25 of 25
ParameterTypeDefaultDescription
mode
textrecommendoff: 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
int0Login of the default coverage account where hedges are placed (its group routes to the liquidity provider). 0: none, auto mode only recommends
exclude_logins
textemptyLogins that are not part of the exposure (for example other hedge or LP accounts), separated by commas
allowed_symbols
textemptySymbols that may be hedged automatically, separated by commas; wildcards allowed. Empty: none (auto mode only recommends)
default_threshold
decimal10.00Net client lots of a symbol from which it is hedged (two decimals)
default_ratio
decimal100.00Share of the net exposure that is hedged, in percent (two decimals)
default_min_hedge
decimal0.10Smallest hedge order or change, in lots (two decimals). Always flattened when target is 0
rules
textemptyPer 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
decimal20.00A hedge stays on until the net falls this many percent below the threshold (two decimals)
recommend_minutes
int15Smallest time between two recommendations or residual reports of a symbol while its target stays the same. 0: every check
max_orders_per_minute
int5Most hedge orders (opens and closes) sent in any 60 seconds
max_order_lots
decimal50.00Largest single hedge order, in lots (two decimals); bigger hedges are split. The symbol's own maximum also applies
tolerance
decimal0.01Difference in lots between the expected and the actual hedge that is reported as a mismatch (two decimals)
close_foreign
bool01: in auto mode close positions on the coverage account that the plugin did not open. 0: only report them
check_seconds
int10Smallest time between two timer checks, in seconds. 0: at every timer
snapshot_minutes
int60How often the exposure report gets one row per symbol, in minutes. 0: never
coverage_routes
textemptyPer-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
bool01: react immediately via the incremental position ledger when a client position opens, updates or closes. 0: timer only
symbol_map
textemptyMap 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
int0Pause opening new hedges when the LP symbol spread exceeds this many points. 0: off
coverage_min_margin_level
decimal0.00Pause 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
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address
dealer_login
System
int0Manager login with dealer rights that closes or opens positions for the plugin. 0: the plugin only logs

Release history

  1. 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.

  2. v1.1.12026-11-22

    Hardened reconciliation and manifest metadata.

  3. v1.1.02026-11-21

    LP upgrade: added event_driven hedging on client position changes and multi-LP coverage_routes per symbol mask.

  4. 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

View all server plugins