Server pluginRisk managementv1.1.09 options Live demo

Negative Balance Protection

Bring client balances back to zero after a stop out or trading loss, so no client loses more than they deposited.

Get a licenseDownload

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.

11 of 11
ParameterTypeDefaultDescription
groups
group mask*Client groups that are protected (MT5 group mask). * means all
remove_credit
bool11: remove the credit of an account before its balance is reset
max_compensation
number0.00Largest amount reset without review; above it the plugin only alerts. 0 means no limit
trigger_on
textanyWhich negative balances to reset: any (all), trade (after a closing trade), or stopout (only after a stop out deal)
deal_kind
textcorrectionBalance operation type for the reset: correction, balance, or bonus
comment
textNegative balance protectionDeal comment written on the reset balance operation (1 to 64 characters)
delay_seconds
int0Seconds to wait after an account becomes flat and negative before resetting. 0: immediate
exclude_logins
textemptyComma-separated account logins excluded from negative balance protection
max_daily_resets
int0Maximum automatic resets per account per day; above it the plugin only alerts. 0 means no limit
license_key
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address

Release history

  1. 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

View all server plugins