Manual · VRD Terminal Health for MetaTrader 5
VRD Terminal Health manual
VRD Terminal Health is a read-only panel for MetaTrader 5. It checks the things that quietly stop EAs from trading on a VPS (connection, Algo Trading, max bars, memory, disk, chart clutter, uptime) and, after every restart, confirms your EA charts and trades came back as they were.
Get VRD Terminal Health on MQL5VPS care checklist
Install and first run
- Copy the EA into your terminal (from the MQL5 Market it installs itself) and attach it to one chart per terminal. A small chart you keep open for monitoring is ideal.
- On the Common tab you do not need to allow DLL imports or WebRequest; the EA uses neither.
- On the Inputs tab, leave the defaults or adjust the thresholds and alert channels described below.
- The panel appears in the top-left corner. Click its title bar to collapse or expand it.
- On the first run the restart check shows "First run". From then on a snapshot is saved every minute and when the terminal closes, and compared on the next start.
Reading the panel
Each row has a coloured dot. Green is fine, grey is information, orange is a warning to look at soon and red needs action now. The title shows the overall state: ALL CLEAR, the number of WARNINGS, or ACTION NEEDED when anything is red. The footer shows the time of the last check.
Alerts are grouped: one message per check lists everything that changed, tagged "VRD Terminal Health" with your account number. The same problem does not repeat until the cooldown has passed, and you get a short recovery message when it clears (you can turn that off). Short connection blips are shown on the panel but not alerted.
Connection
What it shows. Whether the terminal is connected to your broker's trade server, plus the last ping in milliseconds.
How to read it. Green when connected and ping is under the warning level (150 ms by default). Orange for a slow ping or a short drop. Red when the ping is above the critical level (400 ms) or the terminal has been disconnected for longer than the disconnect setting (30 s). A long disconnect means your EAs cannot trade: check the VPS network, the broker server name and whether your account is still active.
Algo trading
What it shows. The Algo Trading button in the toolbar, plus the account-level permission to trade and to trade with EAs.
How to read it. Red when the button was on earlier (this session or before the last restart) and has been switched off, or the broker has disabled trading or EA trading on the account. Orange when it has been off all along, for example on a monitoring-only terminal. Nothing your EAs do will reach the market until this is green. The button is often switched off by a terminal update, by a profile load or by someone pressing Ctrl+E.
Max bars
What it shows. The "Max bars in chart" setting from Tools > Options > Charts.
How to read it. Orange when it is above the threshold (100,000 by default) or set to Unlimited. Every chart keeps that many bars in memory, so a high value on many charts is a common cause of slow restarts and memory pressure on small VPS plans. Lower it to what your EAs and indicators actually need, then restart the terminal.
Terminal up
What it shows. At least how long this terminal has been running, and when a planned restart is due. MT5 does not tell EAs when the terminal started, so the count starts when the panel first loaded in this terminal session: attach it right after a restart and the figure is exact.
How to read it. Grey or green while the session is younger than the restart interval (7 days by default), orange once it is overdue. A weekly restart while the market is closed clears memory growth and stale connections before Monday.
Windows uptime
What it shows. How long Windows has been running since its last start.
How to read it. Orange when Windows has not restarted for longer than the threshold (35 days by default). This usually means updates are queued and Windows may restart itself at a time you did not choose. Plan a restart in a flat window.
Charts
What it shows. How many charts are open, and how many of them are unused (no EA, no script and no indicators).
How to read it. Orange when the total is above the chart threshold (30) or there are more unused charts than the unused threshold (5). Every chart costs memory and CPU on each tick. Close charts that are not doing anything.
EAs attached
What it shows. How many charts have an EA attached, and their names.
How to read it. Shown for information. It is also what the restart check compares after a restart: if an EA chart disappears, you will hear about it.
Memory
What it shows. Memory used by the terminal, the VPS's physical RAM, and the terminal's free virtual memory (address space, which can be larger than the RAM).
How to read it. Orange when the terminal uses more than the memory threshold (1,500 MB by default). Rising memory over days is normal growth that a weekly restart clears; a sudden jump often follows opening many charts or raising max bars.
Disk
What it shows. Free space on the drive the terminal's data folder lives on.
How to read it. Orange below 5 GB and red below 1 GB by default. When the disk fills, the terminal cannot write history, logs or files and can stop working without warning. Clear old logs, tester caches and Windows update leftovers.
Trades
What it shows. Open positions (and how many were opened manually), pending orders and the current floating result.
How to read it. Information only. The panel never changes anything; it shows this so you know what is at stake before you restart or patch.
Restart check
What it shows. After the terminal starts again, the panel compares the charts, EAs, positions and orders with the snapshot saved before it stopped.
How to read it. Green "Clean" when every EA chart is back (two copies of the same EA on the same symbol and timeframe count as two) and Algo Trading is on. Orange "Clean ... Algo still OFF" when everything is back and Algo Trading was already off before the restart. Orange when the EAs are back but positions or orders changed while the terminal was down (a stop or target may have been hit, or a trade closed by hand). Red "NOT clean" when an EA chart is missing or Algo Trading was on before the restart and is off now. "First run: baseline will be saved" means there is no snapshot yet; it changes to "baseline saved" a few seconds later. Changing the panel's inputs or timeframe does not reset the check.
Terminal
What it shows. The terminal build, CPU cores and whether it is running on a MetaQuotes hosted VPS.
How to read it. Orange only if you set a minimum build and the terminal is older. Useful after a broker pushes an update: the restart check also reports a build change.
Inputs
| Input | What it does |
|---|---|
| [Link to Manual] | This page. For reference only. |
| Max bars warning | Warn when Max bars in chart is above this value (default 100000). |
| Ping warning / critical (ms) | Ping levels for orange and red (150 / 400). |
| Disconnect alert after (s) | How long a disconnect lasts before it counts as critical (30). |
| Restart due after (days) | Planned terminal restart interval (7). |
| Windows uptime warning (days) | Warn when Windows has not restarted for this long (35). |
| Chart warnings | Total charts (30) and unused charts (5). |
| Memory warning (MB) | Terminal memory use that triggers a warning (1500). |
| Disk warning / critical (MB) | Free disk levels (5120 / 1024). |
| Minimum build | Warn when the terminal build is older than this (0 = off). |
| Restart check delay (s) | Wait after start before comparing with the snapshot, so EAs have time to load (60). If the terminal is still offline it waits up to three times longer. |
| Snapshot every (s) | How often the snapshot is refreshed while running (60), so even a crash or power cut leaves a recent one. |
| Pop-up / push / email alerts | Which alert channels to use. Push uses the MetaQuotes ID in Tools > Options > Notifications; email uses Tools > Options > Email. |
| Recovery alerts | Also alert when a problem clears. |
| Repeat cooldown (min) | Minimum time before the same problem alerts again (30). |
| Alert on a clean restart | Send a short confirmation when the restart check is clean. |
| Panel | Refresh interval, corner, position and font size. |
VPS care checklist
Terminal Health watches for the symptoms. These habits prevent most of them.
- Restart on Sunday, before the open. Restart the terminal (and ideally Windows) once a week while the market is closed, then check that the restart check shows Clean before the market opens. It clears memory growth and stale connections.
- Patch Windows in a flat window. Set Windows Update active hours to cover your trading hours, pause updates during the week, and install them at the weekend when you have no exposure. Restart yourself rather than letting Windows choose the moment.
- Add Defender exclusions for MT5. Real-time scanning of the terminal's history and tester files slows restarts and can freeze the terminal under load. Exclude the MetaTrader install folder and its data folder (File > Open Data Folder) in Windows Security, and keep scanning everything else.
- Keep max bars sensible. Set Tools > Options > Charts > Max bars in chart to what your EAs need (often 50,000 to 100,000), not Unlimited, then restart.
- Clean up charts. Close charts that have no EA or indicator on them, and do not open the same symbol many times. Save your working layout as a profile so a restart brings back exactly the charts you need.
- Watch disk space. Delete old logs and tester caches from the data folder now and then, and keep at least 5 GB free.
- Turn on push alerts. Link the MetaQuotes ID from the MetaTrader app on your phone in Tools > Options > Notifications, and switch on push alerts in the panel inputs, so you hear about a problem when you are away from the VPS.
- Confirm Algo Trading after every restart. The panel's restart check does this for you, but a glance at the toolbar button before the open is a good habit.
Coming soon
Printable VPS care checklist
The weekly and monthly checklist from this manual as a printable PDF. Not available yet: join the waitlist and we'll tell you when it is.
Automate your VPS care: 24/7 health checks, clean restarts and alerts
Terminal Health tells you when something needs attention. Our planned managed VPS care service is designed to go further: round-the-clock checks, planned weekly restarts that are verified clean, and alerts with what was done. It is not open yet; join the waitlist to hear when it is.
Frequently asked questions
Does Terminal Health place or change trades?
No. It is read-only: it places no orders, changes no settings and makes no web requests of its own (alerts go through MetaTrader's own pop-up, push and email channels). It reads terminal information and shows it on the chart, with optional MetaTrader alerts.
Where do I attach it?
Attach it to one chart per terminal, for example a small chart you keep open for monitoring. If you attach it to more than one chart, only one copy sends alerts and saves snapshots; the others just show the panel.
Can it restart my terminal or switch Algo Trading back on?
No. An EA cannot safely restart its own terminal or press the Algo Trading button. Terminal Health tells you quickly when something needs attention; fixing it is up to you or whoever looks after your VPS.
Why did the restart check say NOT clean?
An EA chart that was open before the terminal stopped is missing, or Algo Trading was on before the restart and is off now. Open the alert or the Experts log to see which chart is missing, reattach the EA (or load your saved profile) and switch Algo Trading on.
Where is the snapshot stored?
In MQL5\Files\VRD_TerminalHealth\snapshot.txt in the terminal's data folder. It is a plain text list of EA charts, position and order tickets. Delete it to start a fresh baseline.
Does it work in the Strategy Tester?
It loads in the tester so you can see the panel, but alerts and snapshots are switched off there because terminal health only makes sense on a live terminal.