Demo Account Lifecycle
Automate demo account expiry, disable/archive/balance-reset cleanup, demo top-up balance and weekly frequency caps, pre-expiry mail reminders, and high-intent CRM conversion lead signals.
What it does
9 capabilities- Automatic demo expiry based on registration age (expire_days) and inactivity (inactive_days)
- Configurable expiry actions: disable login and trading, archive flat accounts, or reset_balance
- Pre-expiry client reminders via MT5 internal mail (warn_days_before)
- Real-time max_balance enforcement clamps excess demo top-up deposits without touching trading profit
- Rolling 7-day max_topups_per_week frequency limit reverts and alerts excess top-ups
- High-intent CRM lead detection (demo_leads) on profit % target and closed trade milestones
- Skips accounts with open positions, pending orders, or online sessions before archive or reset
- Persists weekly top-ups, trade counts, starting balance, warnings, and lead flags across restarts
- Batch throttling (max_per_run), exempt logins, periodic pruning, and dry-run preview mode
How it works
Demo Account Lifecycle keeps MT5 demo servers lean while turning active demo traders into live conversion leads. Each day at the configured UTC run_time, it scans accounts matching demo_groups, sends deduplicated MT5 internal mail reminders warn_days_before expiry, and applies the chosen expiry_action (disable, archive, or reset_balance to reset_target_balance) once accounts exceed expire_days since registration or inactive_days without login or trading activity, throttled by max_per_run. In real time, it enforces max_balance by clamping excess top-up deposits and enforces max_topups_per_week by reverting and alerting excess weekly top-ups. Whenever a demo trader reaches hot_lead_profit_percent profit or hot_lead_min_trades closed trades, the plugin emits a high-intent CRM lead row in demo_leads alongside full lifecycle audit logs in demo_lifecycle, persisting all state across restarts and starting in dry-run mode for safe rollout.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
demo_groups | group mask | demo* | Demo account groups managed by this plugin (MT5 group mask) |
exempt_logins | text | empty | Comma-separated account logins excluded from expiry, top-up caps, and lead signals |
expire_days | int | 30 | Expire demo accounts this many days after registration (0 disables age expiry) |
inactive_days | int | 14 | Expire demo accounts after this many days without login or trade activity (0 disables inactivity expiry) |
expiry_action | text | disable | Action on expired demo accounts: disable, archive, or reset_balance |
reset_target_balance | number | 10000.00 | Target balance applied when expiry_action is reset_balance |
max_balance | number | 100000.00 | Maximum allowed demo balance on top-up deposits; excess is clamped (0.00 disables cap) |
max_topups_per_week | int | 3 | Maximum demo top-up deposits allowed per rolling 7-day week (0 disables cap) |
warn_days_before | int | 3 | Send an MT5 internal mail reminder this many days before demo expiry (0 disables warnings) |
hot_lead_profit_percent | number | 20.00 | Emit demo_leads CRM report when demo profit reaches at least this percentage (0.00 disables) |
hot_lead_min_trades | int | 10 | Emit demo_leads CRM report once a demo trader completes at least this many closed trades (0 disables) |
run_time | text | 03:00 | UTC time of the daily demo lifecycle maintenance run, HH:MM |
max_per_run | int | 500 | Maximum demo accounts processed for expiry per daily run |
dry_run | bool | 1 | 1: preview lifecycle actions and top-up caps without modifying accounts. 0: enforce 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 |
Reports and administration



