Negative Balance Protection
Bring client balances back to zero after a stop out or trading loss, so no client loses more than they deposited.
What it does
7 capabilities- Resets negative balances to zero after positions are closed
- In-flight tagged action guard prevents double compensation
- Trigger filter: any deficit, trade losses only, or stop-out deals only
- Removes bonus credit first, including on review-capped accounts
- Configurable settlement delay, deal kind, and custom comment
- Review cap (max_compensation), daily reset cap, and login exclusions
- Persisted state across restarts and full compensation report
How it works
When a client account ends below zero after its positions are closed (a stop out or price gap), the plugin removes the account's credit and posts a tagged balance correction that brings the balance back to zero. An in-flight action guard prevents double compensation when concurrent fees arrive. You can restrict resets to stop-out or trade-caused deficits (protecting back-office charges from being reversed), configure a settlement delay, choose the deal kind and comment, exclude specific logins, and cap both per-reset compensation and daily resets per account. Even when a reset is held for manual review, credit can still be removed so the client cannot continue trading on bonus funds. Each reset and review event is written to a report and state persists across restarts.
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 protected (MT5 group mask). * means all |
remove_credit | bool | 1 | 1: remove the credit of an account before its balance is reset |
max_compensation | number | 0.00 | Largest amount reset without review; above it the plugin only alerts. 0 means no limit |
trigger_on | text | any | Which negative balances to reset: any (all), trade (after a closing trade), or stopout (only after a stop out deal) |
deal_kind | text | correction | Balance operation type for the reset: correction, balance, or bonus |
comment | text | Negative balance protection | Deal comment written on the reset balance operation (1 to 64 characters) |
delay_seconds | int | 0 | Seconds to wait after an account becomes flat and negative before resetting. 0: immediate |
exclude_logins | text | empty | Comma-separated account logins excluded from negative balance protection |
max_daily_resets | int | 0 | Maximum automatic resets per account per day; above it the plugin only alerts. 0 means no limit |
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
Fixed double-compensation race using tagged actions and in-flight guard; added trigger_on (any/stopout/trade), deal_kind, comment, delay_seconds, exclude_logins, and max_daily_resets; credit is now removed even when max_compensation caps the reset; added state persistence and timer pruning.
Risk management



