Articles · Virtual Risk Desk · Published 2026-10-25 · Updated 2026-10-25
MT5 EA Monitoring on a VPS: Catch a Silent Terminal
Short answer: Don't wait for an error. The dangerous MT5 failure is silence: a frozen terminal, a lost connection or a stopped EA that reports nothing at all. Monitor in three layers: inside the terminal (connection, tick age, resources), on the VPS host (is the process alive, is the disk filling) and from outside (a heartbeat that someone else expects). If the outside check stops hearing from you, assume the worst until you've looked.
Key takeaways
- The failures that cost money are usually quiet ones. Design for "no news is bad news".
- An EA can't report its own death. At least one check must live outside the terminal.
- Stale ticks, disconnections, low memory and a full disk are the four early signs worth automating first.
- Alerts should be few and worst-first, or you will learn to ignore them.
Why silent failures are the real risk
Most traders running expert advisors (EAs) on a virtual private server (VPS) set up alerts for things that go wrong loudly: a trade error, a margin call, an email from the broker. The costly problems tend to be the ones that make no noise.
A terminal that loses its connection overnight doesn't send you anything. Neither does an EA that's been removed from a chart after a crash, or a VPS that has rebooted for Windows updates and come back with MT5 closed. In each case the account looks fine from your phone app, because nothing is happening. Open positions sit unmanaged. A grid EA that expected to close a basket on a pullback never sees the pullback.
So the first rule of MT5 EA monitoring is simple: monitor for the absence of normal activity, not just the presence of errors.
Layer 1: inside the terminal
The terminal can tell you a lot about its own health while it's running. Useful signals include:
- Connection state and ping. Is the terminal connected to the trade server, and how slow is the link?
- Tick age. How long since the last price update on the chart's symbol? During market hours, a quote that hasn't moved for several minutes usually means a feed or connection problem.
- Free memory and disk. MT5 terminals with many charts and long histories grow. A VPS that runs out of RAM or disk fails in odd ways.
- Terminal build. If one terminal updates and another doesn't, you can end up running the same EA on two different builds without knowing.
- Uptime. A machine that hasn't been restarted for weeks is more likely to have pending updates waiting to restart it at a bad moment.
Virtual Risk Desk's MT5 tools show exactly this kind of scorecard on the chart. From version 1.10, every edition, including the free VRD Insight, includes a VPS and terminal health panel with green, amber and red dots for free RAM, CPU load, ping and connection, tick staleness, terminal build, free disk and uptime. The default thresholds are:
| Check | Amber | Red |
|---|---|---|
| Free RAM | below 20% | below 10% |
| Ping | above 50 ms | above 150 ms or disconnected |
| Tick age | after 60 seconds | after 300 seconds |
| Free disk | below 20 GB | below 5 GB |
| Uptime | after 7 days | — |
It uses only the terminal's own built-in functions, with no DLLs or web requests. Two honest caveats: the build check can only flag a mismatch if a "fleet build" is known, and in v1.10 nothing sets one, so that dot stays green. And like any in-terminal check, it stops when the terminal stops. That's why you need the next two layers.
If you want a dedicated, read-only panel for this layer, VRD Terminal Health checks connection, Algo Trading, max bars, memory, disk and chart clutter, and after a restart compares your charts, EAs and trades with the snapshot it saved before the terminal stopped. The Terminal Health manual explains what each green, orange and red row means and which thresholds you can adjust. It runs inside the terminal too, so keep the outside layers as well.
Layer 2: on the VPS host
The second layer runs on the server but outside MT5. It answers questions the terminal can't:
- Is the
terminal64.exeprocess for each account actually running? - Has the machine restarted since you last looked, and did every terminal come back?
- Is disk space falling fast, for example because of log files?
- Are scheduled Windows updates about to force a restart?
On Windows, Task Scheduler can run a short script every few minutes that lists running terminals and writes the result to a log or status file. It doesn't need to be clever. A list of "expected terminals" compared with "running terminals" catches the most common failure: MT5 not restarting after a reboot.
Layer 3: from outside, with a heartbeat
The last layer is the one most traders skip, and it's the one that catches a dead VPS. Something inside your setup writes a heartbeat on a schedule, for example a timestamp in a file that's synced elsewhere, or a short "all green" message. Something outside the VPS expects that heartbeat. If it doesn't arrive within the window, the outside checker alerts you.
The logic is the important part: the outside checker doesn't need to understand MT5. It only needs to know "I should have heard from this desk by now, and I haven't." That catches a crashed terminal, a frozen VPS, a provider outage and a network problem in one rule.
A sensible pattern: 1. The terminal (or a host script that reads the terminal's status) refreshes a heartbeat every few minutes. 2. An external check looks for that heartbeat on a schedule. 3. If the heartbeat is older than your threshold during market hours, you get one clear alert. 4. You also get an alert when it recovers, so you know whether to log in.
VRD's EAs can optionally export a local JSON snapshot on each history rebuild (off by default). From v1.10 it includes a vps block with the same health scorecard, so a host-side script can read it without touching the trading code.
Make alerts worth reading
The fastest way to break monitoring is to make it noisy. If you get twenty amber messages a day, you'll stop reading them, and you'll miss the red one.
- Worst first. One message, with the most serious problem at the top.
- Silence when green. A daily "all fine" summary is plenty. Don't send a message every time a check passes.
- Market hours only, for tick checks. Stale ticks at the weekend are normal.
- Clear next step. "Terminal 3 has had no ticks for 6 minutes. Log in and check the connection" beats "Warning: anomaly detected".
This is where an AI agent can be genuinely useful, as long as it stays in its lane. An agent can read the status files, compare them with yesterday, and write you one plain-English summary of what needs you. It should not be the thing that decides to close trades. We cover that split in AI agents that watch, not trade.
A starter checklist
- [ ] List every terminal you expect to be running, with its account and EAs.
- [ ] Turn on an in-terminal health view (connection, tick age, RAM, disk, uptime).
- [ ] Add a host script that checks each terminal process is alive.
- [ ] Set up a heartbeat and an outside check that expects it.
- [ ] Decide thresholds for amber and red, and only alert on red out of hours.
- [ ] Test it: close a terminal on a demo and confirm you hear about it.
That last step matters most. Monitoring you haven't tested is a guess.
Monitoring is not risk control
Knowing a terminal is down quickly is valuable. It doesn't limit how much an EA can lose while it is running. For that you need per-EA limits. VRD Guardian sets drawdown bands for each EA against its own operating capital, warns as they're crossed, deletes that EA's pending orders at the intervene level and, only if you turn auto-close on, closes its positions at the abandon level. Note there are no close retries: each position gets one close attempt, so you still need to check the result.
If you want per-EA limits and sizing in one panel, VRD Complete combines Insight, Guardian and Quant, plus editable EA Passports and calibrate-and-save sizing.
Go further
If you want the full setup, with prompts, scheduled-task templates, checklists and an escalation plan, the How to Build an AI Trading Desk playbook walks through monitoring, VPS restarts and update tracking as one system. It's an operations guide, not a strategy.
Related reading
- The Sunday VPS restart: a safe runbook for MT5 traders
- MT5 terminal and EA updates: a canary process
- Running multiple EAs on one MT5 account
- AI Agents for Trading: Let Them Watch, Not Trade
- AI Trading Desk Cost: What It Takes to Run Each Month
- VRD Terminal Health: a $44 Way Into Virtual Risk Desk
Further reading on MQL5
- Silent Is Not the Same as Safe: Monitoring MT5 Expert Advisors in Three Layers
- Your EA Downtime Is Set by How Fast You Notice, Not How Often Things Break
If you would rather not run this yourself, VRD Agent Ops is a managed pilot where we watch your VPS and EAs and fix frozen terminals, AutoTrading and disconnects for you. Prefer to stay hands-on? You can run your own ops agent with the Agent Ops Framework, the DIY kit, from the same page.
Free: The MT5 Sunday Restart Runbook
Two full chapters and two checklists, 7 pages.
Get the operations playbook · $49
The How to Build an AI Trading Desk playbook is a 48-page PDF plus an editable kit: monitoring prompts, the Sunday VPS restart runbook, checklists and capital rules. It is an operations guide, not a strategy, and it does not place trades.
Risk disclaimer: Trading forex and CFDs with leverage carries a high risk of loss, and you can lose more than you expect. Monitoring and risk tools can fail and cannot guarantee to prevent losses. Nothing here is financial advice. Past performance does not guarantee future results.
Frequently asked questions
How do I know if my MT5 terminal has stopped working on a VPS?
Watch for silence, not errors. Check that ticks are still arriving, that the terminal is connected and that a heartbeat file or message is updating. If any of those stop for longer than your threshold, treat the terminal as down until you have looked.
What is a heartbeat in MT5 monitoring?
A small signal that something writes on a schedule, such as a file timestamp or a message. A separate checker expects it. When the heartbeat stops, the checker raises the alarm, even if the terminal itself has frozen and can't report anything.
Can an EA monitor its own terminal?
Partly. An EA can see connection state, tick age, free memory and disk from inside MT5. It can't tell you that the terminal or the VPS has died, because then it isn't running either. You need at least one check from outside.
How often should I check my trading VPS?
Automated checks every few minutes, a human glance daily and a fuller review weekly is a sensible starting point. Tighten it for EAs that hold open baskets or trade fast markets.
Does monitoring reduce trading risk?
It reduces the time an outage goes unnoticed. It does not stop a strategy losing money, and it cannot guarantee you will catch every failure in time.
One EA blowup costs more than the whole suite.
VRD Complete contains single-EA blowups and frees capital you have parked as idle buffers. $149 at launch pricing.