Institutional Credit Line
Watches Prime-of-Prime Net Open Position (NOP) credit lines per institutional account or group with FX currency-leg netting, tiered alerts, and breach actions.
What it does
7 capabilities- Real-time FX-converted NOP tracking with netting scale-in detection
- Per-symbol or true FX currency-leg netting (EURUSD/GBPUSD/EURGBP)
- Per-login, per-group, and default NOP credit line limits
- Tiered warn_percent, critical_percent, and 100% breach alerts with rearm_buffer
- Configurable breach_action: alert, disable trading, or tagged close_all with retry
- Symbol mask filtering, optional client mail, and periodic utilization snapshots
- Cached group lookups, disabled early-exit, and full restart state persistence
How it works
Designed for liquidity providers and Prime-of-Prime desks offering margin or credit-line accounts to institutional broker clients. Institutional Credit Line computes each account's Net Open Position (NOP) with full FX conversion via Position::rate_profit across matching symbols—either summed per symbol (nop_mode=symbol) or netted across FX currency legs such as EURUSD/GBPUSD/EURGBP (nop_mode=currency)—and compares it against the account's credit line (login_limits, group_limits, default_nop_limit). Crossing warn_percent or critical_percent raises tiered operator alerts (with optional client mail via notify_client) and hysteresis via rearm_buffer prevents 1-pip alert storms. Breaching 100% triggers breach_action (alert, disable trading, or tagged close_all with retry on failure) and logs credit_breaches and periodic credit_utilization reports. Tracks netting scale-ins via on_position_update. To reject orders pre-trade, use Net Position Limit (max_account_notional).
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
groups | group mask | * | Institutional client groups monitored by credit lines (MT5 group mask). * means all |
default_nop_limit | number | 1000000.00 | Default maximum Net Open Position (NOP) notional per account across all symbols (two decimals). 0: no default limit |
group_limits | text | empty | Per-group NOP credit line overrides, first match wins: mask=amount separated by semicolons, for example inst\tier1*=50000000; inst\tier2*=10000000 |
login_limits | text | empty | Per-login NOP credit line overrides (wins over group_limits): login=amount separated by semicolons, for example 1001=5000000; 1002=25000000 |
warn_percent | number | 80.00 | Credit line utilization percent at which a warning alert is raised (two decimals). 0: warnings off |
breach_action | text | alert | Action when an account's open NOP breaches 100% of its credit line: alert, disable (disable trading), or close_all (close all positions) |
report_minutes | int | 60 | Minutes between credit_utilization snapshot rows for active accounts. 0: off |
rearm_buffer | number | 5.00 | Hysteresis buffer in percent below warning, critical, and breach thresholds before re-arming alerts |
nop_mode | text | symbol | How NOP is aggregated: symbol (sum of abs net per symbol) or currency (true FX currency-leg netting) |
critical_percent | number | 90.00 | Credit line utilization percent at which a critical alert is raised (two decimals). 0: off |
notify_client | bool | 0 | 1: also send MT5 mail to the client on warning, critical, and breach events |
symbols | group mask | * | Symbols included in NOP calculation (wildcard mask, ! excludes). * means all |
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 positions when breach_action=close_all. 0: only logs |
Release history
- v1.2.0Latest2026-11-24
Fixed FX notional conversion using Position::rate_profit and NaN guard; added on_position_update for netting scale-ins; added rearm_buffer hysteresis, nop_mode (symbol/currency FX leg netting), critical_percent, notify_client, and symbols filter; added tagged close_all retries, login->group caching, disabled early-exit, and complete state pruning/mark_dirty.
- v1.1.02026-11-22
Removed the order check and the block_new_orders parameter. The Net Position Limit plugin rejects orders now (max_account_notional). The credit line keeps its alerts, reports and breach_action.
- v1.0.02026-11-21
First release: per-login/group/default NOP credit lines, pre-trade risk-reducing check, utilization warnings, breach actions, and utilization reports.
Liquidity provider



