AI Server Agent
Run what your staff approved in the FXOps Pro AI assistant on your own MT5 server: reports, account changes, balance operations, trades and server settings, within strict local guardrails.
What it does
10 capabilities- Describe multi-step tasks in plain words and chain reads into writes
- Approve verified preview diffs before any server change runs
- Analytics and diagnostics: grouped aggregates, IP/email clusters, execution slippage, trader performance, group diffs, integrity checks, online sessions, and server logs
- Accounts: create, import, update, rights, group, leverage, trading, passwords, archive, restore, delete, emergency flatten, and balance reconciliation
- Dynamic balance modes, per-account batch adjustments, and cross-currency transfers
- Open, close, close by, reverse, modify and correct positions, correct deals, place, modify and cancel orders
- Send mail, mobile push notifications, and news; create, update, copy rules, and delete groups and symbols
- Hard local guardrails: read_only, allowed_ops, protect_groups, allow_destructive, max_targets, currency-normalized max_money, daily_money_limit, max_execution_seconds, and max_scan_accounts
- Crash-safe idempotent persistence, bounded sync batches, and per-target drift protection
- One-time generated passwords never kept after ack; caller passwords redacted in outputs
How it works
AI Server Agent connects your MT5 trade server to the AI assistant in your FXOps Pro CRM. A staff member describes a task in plain words (for example: aggregate equity by group, find inactive accounts and disable trading, or clear negative balances). The assistant writes a typed plan, the plugin checks it against your server and shows exactly which accounts, positions or orders would change, with values before and after. Only when a manager approves that preview does the plugin make the changes, and it reports the result of every target. The plugin calls out to FXOps Pro every few seconds; nothing connects into your server. It supports rich reads and aggregated analytics (server summary, accounts with derived risk fields, grouped stats, cluster detection, positions, orders, deals, execution slippage and trader performance reports, group diffs, online sessions, order history, archived accounts, balance integrity checks, server logs, tick and chart history, and server configuration without passwords) and chained or bulk changes (accounts create/import/update/rights/group/leverage/trading/enabled/passwords/archive/restore/delete/flatten/fix balance, dynamic balance modes and batch adjustments, transfers with currency conversion, position and order operations, online disconnect, internal mail, push notifications, news, and group/symbol configuration including rule copying). New passwords are shown once after the run and are never kept once confirmed, and caller-supplied passwords are always redacted in outputs. Hard local guardrails are enforced in the plugin parameters: read-only mode, allowed operations, visible groups, immutable protect_groups deny-list, server config switch, allow_destructive kill-switch (off by default), max targets, currency-normalized max_money and 24h daily_money_limit (in base_currency), max steps, max_execution_seconds timeout, and max_scan_accounts cap. State is persisted immediately after every run to prevent replay on crash, and sync payloads stay strictly bounded in count and size. A run needs approval of the exact preview within ten hours, verifies all target keys, and skips targets that changed since the preview. Every change uses dealer_login and appears in the server journal.
Parameters & options
Configured directly in MetaTrader 5 Administrator and testable live in the simulator.
| Parameter | Type | Default | Description |
|---|---|---|---|
read_only | bool | 0 | 1: only read jobs run, every change is refused |
allowed_ops | text | * | Operations the agent may run, separated by commas. * is all, accounts.* a family, !accounts.delete excludes (for example *,!accounts.delete,!balance.change) |
groups | group mask | * | Groups the agent may see and change (masks such as real\*, !real\vip*). * is all |
protect_groups | group mask | empty | Immutable deny-list of groups (house, LP, admin) that no write operation may ever touch, even if matched by groups |
allow_config | bool | 1 | 0: groups.create, groups.update, groups.delete, groups.symbol_rule, groups.add_symbols, groups.remove_symbol, groups.copy_rules, symbols.create, symbols.update, symbols.delete and news.send are refused |
allow_destructive | bool | 0 | 1: allow destructive operations (accounts.delete, groups.delete, symbols.delete, deals.correct, positions.correct). 0: all refused |
max_targets | int | 1000 | Most targets (accounts, positions, orders) one step may change (1 to 1000000) |
max_money | decimal | 100000.00 | Most money one step may move, normalized to base_currency (sum of the amounts of all non-refused targets) |
daily_money_limit | decimal | 500000.00 | Cumulative 24h UTC money cap across all write plans, normalized to base_currency (0.00 = unlimited) |
base_currency | text | USD | Reference currency code (such as USD or EUR) used to normalize max_money and daily_money_limit |
max_steps | int | 20 | Most steps in one plan (1 to 100) |
max_execution_seconds | int | 30 | Hard execution time budget in seconds per plan (1 to 600) |
max_scan_accounts | int | 10000 | Maximum accounts scanned in one query to prevent lock-hold stalls (1 to 1000000) |
poll_seconds | int | 5 | Fallback poll interval in seconds (2 to 60), used until the server answers. The server's interval then replaces it |
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 makes the trades and balance operations for the plugin. 0: the plugin only logs |
Release history
- v1.2.0Latest2026-12-03
Production capability negotiation & robustness release: advertises server.capabilities (ops, fields, operators, features, dealer_ready) in agent/sync so CRM and plugins-api never dispatch unsupported operations to older DLLs; adds symbols.diff and reports.summary time-bucket rollups (by: day|month); preflight dealer_login checks on trade/order/flatten ops at preview time; two-pass deal scanning for reports.performance and positions.history plus cached per-deal currency lookups in the MT5 adapter; immediate state flush after remote jobs and 2s remote timer cadence; clean read byte-budget row truncation without column wipeout; mid-run exception hardening preserving generated secrets; overflow-safe money sums; multi-currency warning on reports.performance; and typo suggestions on unknown op/field/arg errors.
- v1.1.02026-11-24
Hardened production safety and guardrails: added immediate state persistence via mark_dirty() (prevents crash double-execution), sync request correlation (req matching), offline queue cap (200), per-sync result cap (25) and <850 KB body cap with clean oversized truncation, overflow-safe currency-normalized max_money & 24h daily_money_limit in base_currency, immutable protect_groups deny-list, allow_destructive kill-switch (default off), max_execution_seconds hard timeout, max_scan_accounts cap, password output redaction, stop_limit_price in orders.modify, suffixed FX symbol transfer lookup, group cache invalidation, exact 64-bit ticket/login cells, and 4-decimal swap/volume support.
- v1.0.62026-11-24
Added step-to-step read piping (from_step), OR filters (any), richer where operators, derived account risk/rights fields, relative UTC time tokens, 10 aggregated/diagnostic read ops, 6 operational write ops (balance.batch, accounts.flatten, online.disconnect, notifications.send, accounts.fix_balance, groups.copy_rules), dynamic balance.change modes, complete preview keys for large previews, exact before/after diffs on rights and config fields, and O(1) deal lookup.
- v1.0.52026-11-22
The text of the allow_config parameter now lists every operation it refuses: groups.create, groups.update, groups.delete, groups.symbol_rule, groups.add_symbols, groups.remove_symbol, symbols.create, symbols.update, symbols.delete and news.send. The behavior is not changed.
AI



