Server pluginReports and administrationv1.1.014 options Live demo

Inactive Accounts Cleaner

Once a day, find inactive accounts with no open exposure, pending orders, recent deals, or active IB links, warn clients if configured, and archive, disable, or move them.

Get a licenseDownload

What it does

8 capabilities
  • Daily run at a set server time with crash-safe persistence
  • Skips negative balances by default to protect uncollected debt
  • Checks open positions, pending orders, online sessions, recent deals, and IB agents
  • Per-group login scan and max_per_run batch throttle for large servers
  • Confirmed archive via OpResult plus disable and move_group actions
  • Optional client warning mail N days before inactivity cutoff
  • Dry run by default, exempt logins, group mask, and min_registered_days
  • Report of every account found, warned, or acted on

How it works

Once a day at a configured server time, the plugin scans accounts in matching groups using per-group login lookups and batch throttling (max_per_run). Accounts are skipped when they hold open positions, pending orders, online sessions, credit, balance above max_balance, negative balance (unless allow_negative_balance=1), recent deals (check_deals_days), active IB referrals (skip_ib_agents=1), or age below min_registered_days. Optional warning mails can be sent warn_days_before the cutoff. Eligible accounts are archived (verified via OpResult), disabled, or moved to target_group. Starts in dry_run mode and persists the last run day and warning records over restarts.

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 checked (MT5 group mask). * means all
inactive_days
int365An account is inactive when its last access is older than this many days
max_balance
decimal0.00Accounts with a balance above this amount are kept
allow_negative_balance
bool00: keep accounts with negative balance (uncollected debt). 1: include negative balances
run_time
text03:00Time of the daily run, HH:MM server time
dry_run
bool11: only report what would be done. 0: perform the configured action
action
textarchiveAction on inactive accounts: archive, disable, or move_group
target_group
textemptyDestination group when action is move_group
max_per_run
int500Maximum number of inactive accounts acted on per daily run
check_deals_days
int0If > 0, skip accounts that had any deal in the last N days
skip_ib_agents
bool11: skip accounts that are the IB agent for any other account
warn_days_before
int0If > 0, send a client mail warning this many days before the inactivity cutoff
min_registered_days
int0Skip accounts registered fewer than this many days ago
exempt_logins
textemptyLogins that are never archived or modified, separated by commas
license_key
System
textemptyLicense key from FXOpsPro, for example FXO-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX
license_server
System
texthttps://plugins.fxopspro.comLicense server address

Release history

  1. v1.1.0Latest2026-11-24

    Fixed archiving negative-balance accounts (added allow_negative_balance=0 default); added pending order, online session, recent deals (check_deals_days), IB agent (skip_ib_agents), and min_registered_days safeguards; replaced full scans with per-group logins_in_group, single all_positions() set, unordered_set exempt_logins, and max_per_run throttling; switched to confirmed account_archive() OpResult; added warn_days_before mail notices, action (archive|disable|move_group) + target_group, and mark_dirty() persistence.

Reports and administration

View all server plugins