Hedge Locker
Blocks or alerts on hedging orders inside one account or across linked accounts sharing an IP address or IB agent, with symbol alias, credit, and time-window rules.
What it does
9 capabilities- Pre-trade rejection (fail-closed) or alert-only monitoring mode
- O(1) in-memory position, IP, and agent index with zero per-order full scans
- Optional own-account hedge blocking alongside linked IP and IB agent checks
- IPv6 /64 normalization and CIDR/wildcard ignore_ips whitelist
- Symbol alias and suffix mapping (e.g. EURUSD.raw=EURUSD, *.raw=*)
- Time window (window_seconds), bonus-credit filter, and minimum volume filter
- Closing orders and MT5 netting reductions are always allowed
- Per-pair alert cooldown deduplication and exempt logins list
- Group mask applied to both the ordering account and linked accounts
How it works
Hedge Locker guards against bonus abuse, latency arbitrage, and forbidden hedging both pre-trade (rejecting orders before execution) and in alert-only monitoring mode. It maintains an O(1) in-memory position and account index across orders, positions, logins, and accounts, normalizing IPv4 and IPv6 (/64) addresses and mapping symbol suffixes or aliases (such as EURUSD.raw=EURUSD) so cross-symbol hedging is caught. Closing orders and MT5 netting reductions are always allowed, excluded groups never block monitored accounts, and the pre-trade hook fails closed under lock contention. Replaces the retired Hedging Detector plugin.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
symbols | text | * | Symbols to check, comma separated; wildcards and !exclusions allowed (for example EUR*,!EURJPY). * means all |
groups | group mask | * | Client groups checked on both the ordering account and linked accounts (MT5 group mask). * means all |
action | text | reject | Action on hedge match: reject (block the order) or alert_only (allow and alert) |
block_own_account | bool | 0 | 1: also enforce against opposite positions in the same account |
block_same_ip | bool | 1 | 1: enforce against opposite positions in another account sharing the same normalized IP (IPv6 /64) |
block_same_agent | bool | 0 | 1: enforce against opposite positions in another account with the same non-zero agent |
window_seconds | int | 0 | Only match if the opposite position opened within this many seconds; 0 matches any open opposite position |
min_lots | decimal | 0.00 | Ignore orders and positions below this volume in lots (0.00 checks all volumes) |
only_with_credit | bool | 0 | 1: only enforce when at least one of the two accounts holds bonus credit (credit > 0) |
ignore_ips | text | empty | Comma-separated IPs, CIDRs (10.0.0.0/8), or wildcards ignored for same-IP matching |
exempt_logins | text | empty | Comma-separated logins exempt from hedge checks and ignored as opposite holders |
symbol_aliases | text | empty | Map symbol aliases or suffixes to canonical roots, as alias=root; ... (e.g. EURUSD.raw=EURUSD; *.pro=*) |
alert_cooldown_seconds | int | 60 | Suppress duplicate alerts for the same account pair and symbol within this many seconds (0: no cooldown) |
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
- v2.0.0Latest2026-11-24
Unified Hedge Locker and Hedging Detector: added fail-closed pre-trade guard, O(1) in-memory position/account index, closing and netting-close exemption, other-account group filtering, action (reject|alert_only), block_own_account, window_seconds, ignore_ips (CIDR/wildcard), IPv6 /64 IP normalization, only_with_credit, exempt_logins, symbol_aliases, min_lots, and alert_cooldown_seconds.
Exposure and abuse



