Inventory Skew Engine
Dynamically skews bid and ask quotes in O(1) based on live net client exposure to attract offsetting flow and prevent cross-LP arbitrage.
What it does
10 capabilities- O(1) incremental position ledger (open, update, close) with timer reconciliation
- Zero server reads on the quote thread with digit-rounded prices and 0-spread support
- Aggregates exposure across symbol_aliases (e.g. .raw/.pro suffixes)
- Measure inventory in lots or FX-converted usd_notional
- Linear or convex ramp curves with optional hysteresis_lots anti-flap band
- Skew modes: both (symmetric shift), worsen_only, and asymmetric
- Cross-LP arbitrage guard via max_skew_spread_ratio
- Per-symbol wildcard rules (mask=threshold/max_skew/full_lots)
- Book perspective selector (client or house) plus group masks and exclude_logins
- Dry-run mode records computed skews in skew_events without altering quotes
How it works
Built for liquidity providers and market-making desks that internalize flow. Inventory Skew Engine maintains an O(1) incremental position ledger updated on position opens, updates, and closes with periodic timer reconciliation, keeping on_tick completely free of server calls and rounding mutated prices to symbol digits (supporting zero-spread ECN ticks). Aggregates net exposure across symbol_aliases (such as .raw/.pro suffixes) in either lots or FX-converted usd_notional, applies linear or convex ramp curves with optional hysteresis_lots to avoid flapping, and supports skew_mode (both, worsen_only, asymmetric) plus max_skew_spread_ratio to prevent cross-LP arbitrage. Supports book_perspective (client or house), per-symbol wildcard rules, exclude_logins, and dry_run auditing.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
groups | group mask | *,!demo* | Client groups whose open positions define the net inventory (MT5 group mask) |
exclude_logins | text | empty | Logins excluded from inventory (for example coverage or LP accounts), separated by commas |
symbols | text | * | Symbols eligible for inventory skewing, comma separated; wildcards and ! exclusions allowed. * means all |
symbol_aliases | text | empty | Map suffix/variant symbols onto one canonical bucket: mask=canonical separated by semicolons, for example EURUSD.raw=EURUSD; EURUSD.pro=EURUSD |
measure_in | text | lots | Inventory unit: lots (net lots) or usd_notional (FX-converted net notional in account currency) |
threshold_lots | number | 10.00 | Net exposure threshold (lots or USD notional per measure_in) before skewing starts (two decimals) |
full_skew_lots | number | 50.00 | Net exposure at which max_skew_points is reached (two decimals) |
hysteresis_lots | number | 0.00 | Anti-flap band (lots or USD notional per measure_in) before active skew reduces or resets to zero. 0: off |
max_skew_points | int | 5 | Maximum quote shift in points. 0: skewing off |
curve | text | linear | Ramp curve from threshold to full skew: linear or convex (quadratic) |
skew_mode | text | both | both: shift bid and ask equally. worsen_only: shift only the discouraging side. asymmetric: full shift on discouraging side, half on attracting side |
max_skew_spread_ratio | number | 0.00 | Cap improving-side shift to this multiple of raw tick spread (for example 0.50 = half spread) to prevent cross-LP arbitrage. 0: off |
rules | text | empty | Per-symbol overrides, first match wins: mask=threshold/max_skew/full_lots separated by semicolons, for example EUR*=5/3/40; XAU*=2/15/20 |
book_perspective | text | client | client: net long clients shift quotes up (standard internalization). house: treats net inventory as house position (opposite sign) |
dry_run | bool | 0 | 1: record computed skews to skew_events without modifying live quotes. 0: apply skew to live ticks |
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 |
Release history
- v1.1.0Latest2026-11-24
O(1) incremental position ledger with on_position_update and timer reconciliation, rounded prices with 0-spread ECN support, strict rule validation, replaced invert_direction with book_perspective (client/house), and added symbol_aliases, skew_mode, max_skew_spread_ratio, measure_in (lots/usd_notional), hysteresis_lots, and curve (linear/convex).
- v1.0.12026-11-22
Expanded unit and end-to-end test coverage for netting, partial rules, and quote boundary guards.
- v1.0.02026-11-21
First release: inventory-driven bid/ask skewing, per-symbol wildcard rules, linear ramp, exclude_logins, and dry-run audit logging.
Liquidity provider



