Dormancy Fee Manager
Charge recurring inactivity fees on dormant funded accounts with pre-charge warnings, balance protection, and automatic zero-balance lifecycle actions.
What it does
9 capabilities- Recurring inactivity fee billing with configurable inactive_days and billing_period_days
- Flat fee, balance percentage fee, and per-group wildcard fee overrides (e.g. vip*=0.00)
- Zero-balance floor (cap_at_balance) prevents fees from ever pushing accounts negative
- Deduplicated pre-charge warning emails (warn_days_before) via MT5 internal mail
- Automatic grace reset on any client login, trade, or deposit
- Skips accounts holding open positions, pending orders, or active IB referred clients
- Optional disable trading or archive action once dormancy fees bring balance to zero
- Confirmed balance operations with rollback on failure and restart-safe state
- Batch throttling (max_per_run), dry-run preview mode, and dormancy_fees CRM report
How it works
Dormancy Fee Manager automates inactivity fee billing across inactive funded MT5 accounts. Each day at the configured UTC run time, it evaluates accounts matching the group mask, tracks true client activity (logins, trades, and deposits), sends deduplicated pre-charge warning emails at configured milestones, and charges either a flat fee, a percentage of balance, or per-group overrides on a recurring billing schedule. It protects clients from negative balances by capping fees at available positive balance, optionally skips accounts with open positions, pending orders, or active IB referrals, throttles large batches with max_per_run, and can disable trading or archive accounts once their balance reaches zero. Every run writes an audit trail to the dormancy_fees CRM report and defaults to dry-run mode for safe rollout.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
groups | group mask | *,!demo* | Client groups checked for dormancy fees (MT5 group mask). * means all |
exempt_logins | text | empty | Logins never charged or warned, separated by commas |
inactive_days | int | 90 | Days without login, trade, or deposit before dormancy billing starts |
billing_period_days | int | 30 | Days between recurring dormancy fee charges |
fee_amount | number | 10.00 | Flat dormancy fee in the account currency |
fee_percent | number | 0.00 | Optional percentage of balance (e.g. 1.50 for 1.50%). Uses max(fee_amount, balance * fee_percent) |
group_fees | text | empty | Per-group flat fee overrides, semicolon separated, for example vip*=0.00; eur*=10.00 |
cap_at_balance | bool | 1 | 1: cap fee at available positive balance so accounts never go negative. 0: charge full fee |
skip_with_positions | bool | 1 | 1: skip accounts with open positions or pending orders. 0: include them |
skip_ib_agents | bool | 1 | 1: skip accounts acting as an IB agent for any active account. 0: include them |
warn_days_before | text | 14,3 | Comma-separated reminder days before the next dormancy charge (empty disables warnings) |
zero_balance_action | text | none | Action once dormancy fee brings balance to 0.00: none, disable, or archive |
run_time | text | 02:00 | UTC time of the daily dormancy scan, HH:MM |
max_per_run | int | 500 | Maximum accounts charged per daily run |
comment | text | Dormancy fee | Deal comment for dormancy charges (up to 31 characters) |
dry_run | bool | 1 | 1: preview and report charges without debiting accounts. 0: charge live |
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 |
Billing



