Server pluginReports and administrationv1.0.014 options Live demo

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.

Get a licenseDownload

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.

16 of 16
ParameterTypeDefaultDescription
demo_groups
group maskdemo*Demo account groups managed by this plugin (MT5 group mask)
exempt_logins
textemptyComma-separated account logins excluded from expiry, top-up caps, and lead signals
expire_days
int30Expire demo accounts this many days after registration (0 disables age expiry)
inactive_days
int14Expire demo accounts after this many days without login or trade activity (0 disables inactivity expiry)
expiry_action
textdisableAction on expired demo accounts: disable, archive, or reset_balance
reset_target_balance
number10000.00Target balance applied when expiry_action is reset_balance
max_balance
number100000.00Maximum allowed demo balance on top-up deposits; excess is clamped (0.00 disables cap)
max_topups_per_week
int3Maximum demo top-up deposits allowed per rolling 7-day week (0 disables cap)
warn_days_before
int3Send an MT5 internal mail reminder this many days before demo expiry (0 disables warnings)
hot_lead_profit_percent
number20.00Emit demo_leads CRM report when demo profit reaches at least this percentage (0.00 disables)
hot_lead_min_trades
int10Emit demo_leads CRM report once a demo trader completes at least this many closed trades (0 disables)
run_time
text03:00UTC time of the daily demo lifecycle maintenance run, HH:MM
max_per_run
int500Maximum demo accounts processed for expiry per daily run
dry_run
bool11: preview lifecycle actions and top-up caps without modifying accounts. 0: enforce live
license_key
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address

Reports and administration

View all server plugins