Server pluginBonus and promotionsv1.3.013 options Live demo

Bonus Abuse Protector

Guards bonus credit against scalping abuse with configurable enforcement actions, SL/TP/SO filtering, and optional shared-IP alerts.

Get a licenseDownload

What it does

8 capabilities
  • Short-trade alert and scalping counter per account with symbol and group masks
  • Ignores Stop Loss, Take Profit, and Stop Out closes by default (ignore_sl_tp_so)
  • Optional profitable-only short-trade filter (only_profitable_shorts)
  • Four scalping actions: alert, remove_credit, close_and_remove_credit, remove_and_disable
  • Confirmed tagged credit removals with automatic retry and timeout recovery
  • Optional shared-IP detection with IPv6 /64 normalization and CIDR/wildcard whitelist
  • Bounded memory with timer pruning and immediate dirty-state persistence
  • Audit report of every action including shared IP and linked logins

How it works

Works with credit given by any bonus system. Watches chosen groups and symbols for short-hold trades on accounts with credit, optionally ignoring Stop Loss, Take Profit and Stop Out closes or non-profitable trades. When short trades reach the threshold within the window, it can alert, remove credit, close open positions and remove credit, or remove credit and disable trading, using confirmed tagged server actions with automatic retry on failure. Optional shared-IP tracking (off by default to avoid duplicating Anti-Fake Account) groups IPv6 addresses by /64 prefix and supports CIDR/wildcard whitelists. The plugin does not act on withdrawals: Deposit Bonus owns that rule.

Parameters & options

Configured directly in MetaTrader 5 Administrator and testable live in the simulator.

16 of 16
ParameterTypeDefaultDescription
groups
group mask*Client groups that are watched (MT5 group mask). * means all
symbols
text*Symbols watched for short trades and scalping (comma-separated masks, ! excludes). * means all
alert_hold_seconds
int0An account with credit that closes a position sooner than this many seconds after it was opened gets an alert and a report row. 0 turns the alert off
min_hold_seconds
int180A position closed sooner than this many seconds after it was opened is a short trade
max_short_trades
int5Number of short trades inside the window that counts as scalping
window_hours
int24Length of the window in which short trades are counted, in hours
ignore_sl_tp_so
bool11: ignore trades closed by Stop Loss, Take Profit, or Stop Out when counting short trades. 0: count all closes
only_profitable_shorts
bool01: only count profitable short-hold trades (profit > 0). 0: count all short-hold trades
action_on_scalping
textalertAction on scalping: alert, remove_credit, close_and_remove_credit, or remove_and_disable
shared_ip_enabled
bool01: alert when more than max_credit_accounts_per_ip accounts with credit share an IP. 0: off (Anti-Fake Account owns IP tracking)
max_credit_accounts_per_ip
int2Maximum accounts with credit allowed per IP (IPv6 /64) within ip_window_days before alerting
ip_window_days
int7How many days an IP login is remembered for accounts with credit
whitelist_ips
textemptyComma-separated IPs, wildcards, or CIDRs exempt from shared-IP alerts
license_key
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address
dealer_login
System
int0Manager login with dealer rights that closes positions for close_and_remove_credit. 0: the plugin only logs

Release history

  1. v1.3.0Latest2026-11-30

    Added ip and linked_logins columns to the abuse report table for shared-IP bonus abuse investigations on the CRM page.

  2. v1.2.02026-11-24

    Replaced untagged DealKind::Credit confirmation with tagged change_balance_tagged/close_all_tagged and on_action_result plus timeout/retry recovery. Added action_on_scalping (replaces remove_on_scalping), symbols, ignore_sl_tp_so, only_profitable_shorts, shared_ip_enabled (default off to deduplicate with Anti-Fake Account), max_credit_accounts_per_ip, ip_window_days, and whitelist_ips with IPv6 /64 normalization. Added timer pruning, memory bounds, and mark_dirty() persistence.

  3. v1.1.02026-11-22

    Each plugin does its own job: new short-trade alert (alert_hold_seconds, off by default) for accounts with credit. The withdraw_rule parameter and the credit removal on withdrawals were removed, because Deposit Bonus owns that rule. The shared IP alert is unchanged.

Bonus and promotions

View all server plugins