Net Position Limit
Fail-closed pre-trade exposure gate enforcing per-order, account net/gross, group, server net, concentration, and FX-converted notional limits.
What it does
10 capabilities- Fail-closed pre-trade check with O(1) incremental ledger and burst reservation
- Always allows closing orders and netting opposite-side reductions
- Per-symbol max_order_lots, max_account_lots, and max_net_lots with wildcards
- Account-wide max_gross_lots cap to stop unbounded hedged volume
- Concentration cap (max_share_percent) above share_min_net_lots
- FX-converted net open position limits per account, group, and login
- Group-wide net lots and net notional limits per MT5 group mask
- Scope server net with server_net_groups and exclude_logins (demo/LP)
- Reject mode blocks breaching orders; alert_only monitors without rejecting
- Emits limit_rejections report rows and operator alerts on every breach
How it works
Net Position Limit checks each opening client order in O(1) using an incremental position ledger and short in-flight burst reservations so concurrent order bursts cannot bypass caps. Closing orders and netting opposite-side reductions always pass. Supports per-symbol max_order_lots, max_account_lots, max_net_lots, concentration caps (max_share_percent above share_min_net_lots), account-wide max_gross_lots, FX-converted net open position limits (max_account_notional with group and login overrides), and group-level lot/notional limits. Scope server net totals with server_net_groups and exclude_logins so demo or LP coverage accounts do not distort live exposure. Runs fail-closed on MT5, emits limit_rejections report rows and operator alerts, and supports reject or alert_only mode.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
groups | group mask | * | Client groups that are checked (MT5 group mask). * means all |
exclude_logins | text | empty | Logins exempt from checks and excluded from server/group net totals (for example LP coverage or house accounts), separated by commas |
server_net_groups | group mask | * | Client groups counted in server net exposure (max_net_lots and max_share_percent), for example *,!demo*. * means all |
max_order_lots | text | empty | Largest lots in one order, for example EURUSD=50; XAUUSD=10; *=100. 0 or no rule: no limit |
max_account_lots | text | empty | Largest net lots (buys minus sells) of one account per symbol, same format. 0 or no rule: no limit |
max_gross_lots | number | 0.00 | Largest total gross open lots of one account across all symbols (two decimals). 0: no limit |
max_net_lots | text | empty | Largest net lots of all clients together per symbol, same format. 0 or no rule: no limit |
max_share_percent | text | empty | Largest share of the server net position one account may hold per symbol, in percent, for example EURUSD=30; *=50. 0 or 100 or no rule: no limit |
share_min_net_lots | text | empty | Share limit applies only when the net lots of all clients (after the order) are above this, per symbol, same format as max_net_lots, for example *=20. No rule: 0, so always |
max_account_notional | number | 0.00 | Largest net open position of one account over all symbols, in the account currency (two decimals). It is the sum of the absolute net notional of each symbol. 0: no limit |
account_notional_groups | text | empty | Net open position limit per group, first match wins and replaces max_account_notional: mask=amount separated by semicolons, for example real\vip*=50000000; real\std*=5000000 |
account_notional_logins | text | empty | Net open position limit per login, replaces the group and default limit: login=amount separated by semicolons, for example 1001=5000000; 1002=25000000 |
max_group_lots | text | empty | Largest net lots per symbol of all accounts of a group together: mask=lots separated by semicolons, first match wins, for example real\vip*=100; real\std*=30. No rule: no limit |
max_group_notional | text | empty | Largest net open position of all accounts of a group together, over all symbols, in the account currency: mask=amount separated by semicolons, first match wins, for example real\vip*=100000000. No rule: no limit |
action | text | reject | reject: block breaching orders, alert and log. alert_only: allow orders to pass, only alert and record limit_rejections |
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.3.0Latest2026-11-24
Fail-closed order hook, always allows closing and netting-reducing orders, fixes cross-currency (e.g. USDJPY) notional conversion via rate_profit/conversion_rate, O(1) incremental position ledger with burst TOCTOU reservations, fixes max_share_percent=100, adds limit_rejections reports and alerts, and adds exclude_logins, server_net_groups, max_gross_lots, and action (reject/alert_only).
- v1.2.02026-11-22
Limits per account and per group, in lots or in notional. New parameters max_account_notional, account_notional_groups, account_notional_logins, max_group_lots and max_group_notional; all off by default. An order is rejected only when it would raise a net position above a limit. Order rejection for the credit line moved here from Institutional Credit Line.
- v1.1.12026-11-21
Optimized order checks to O(1) indexed exposure lookups per symbol and account for high-frequency institutional order flow.
- v1.1.02026-11-20
Concentration limit: reject an order that would make one account's net position larger than a percentage of the net position of all clients in the symbol, above a minimum server net. New parameters max_share_percent and share_min_net_lots; both off by default.
Exposure and abuse



