Bonus Abuse Protector
Guards bonus credit against scalping abuse with configurable enforcement actions, SL/TP/SO filtering, and optional shared-IP alerts.
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.
| Parameter | Type | Default | Description |
|---|---|---|---|
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 | int | 0 | An 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 | int | 180 | A position closed sooner than this many seconds after it was opened is a short trade |
max_short_trades | int | 5 | Number of short trades inside the window that counts as scalping |
window_hours | int | 24 | Length of the window in which short trades are counted, in hours |
ignore_sl_tp_so | bool | 1 | 1: ignore trades closed by Stop Loss, Take Profit, or Stop Out when counting short trades. 0: count all closes |
only_profitable_shorts | bool | 0 | 1: only count profitable short-hold trades (profit > 0). 0: count all short-hold trades |
action_on_scalping | text | alert | Action on scalping: alert, remove_credit, close_and_remove_credit, or remove_and_disable |
shared_ip_enabled | bool | 0 | 1: 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 | int | 2 | Maximum accounts with credit allowed per IP (IPv6 /64) within ip_window_days before alerting |
ip_window_days | int | 7 | How many days an IP login is remembered for accounts with credit |
whitelist_ips | text | empty | Comma-separated IPs, wildcards, or CIDRs exempt from shared-IP alerts |
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 for close_and_remove_credit. 0: the plugin only logs |
Release history
- 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.
- 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.
- 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



