Heartbeats and alerts for an EA running on a VPS
Posted: Sat Oct 17, 2026 8:35 am
Heartbeats and alerts for an EA running on a VPS
If you run an EA on a VPS, the scary scenario isn't a bad trade. It's the EA silently stopping and you not noticing for hours or days. Platform crashes, the VPS restarts for updates, the connection drops, or the EA hits an error and stops trading.
A heartbeat is a simple way to catch this. The EA sends a small message at regular intervals, every fifteen minutes say, to somewhere you'll see if it stops. That could be a push notification to your phone through MT5, a message to a Telegram bot, or a line written to a file that another script checks.
The point is that silence becomes a signal. If you don't get a heartbeat for an hour, something's wrong.
I'd also send alerts on specific events: an order failing, the connection dropping, margin level getting low, or the EA hitting a daily loss limit. Not every trade, or you'll start ignoring them.
The other side is the VPS itself. Set Windows updates so they don't restart the machine during trading hours, and make sure the platform starts automatically after a restart with the EA attached.
It's a bit of setup, but it means you're not relying on luck.
If you run an EA on a VPS, the scary scenario isn't a bad trade. It's the EA silently stopping and you not noticing for hours or days. Platform crashes, the VPS restarts for updates, the connection drops, or the EA hits an error and stops trading.
A heartbeat is a simple way to catch this. The EA sends a small message at regular intervals, every fifteen minutes say, to somewhere you'll see if it stops. That could be a push notification to your phone through MT5, a message to a Telegram bot, or a line written to a file that another script checks.
The point is that silence becomes a signal. If you don't get a heartbeat for an hour, something's wrong.
I'd also send alerts on specific events: an order failing, the connection dropping, margin level getting low, or the EA hitting a daily loss limit. Not every trade, or you'll start ignoring them.
The other side is the VPS itself. Set Windows updates so they don't restart the machine during trading hours, and make sure the platform starts automatically after a restart with the EA attached.
It's a bit of setup, but it means you're not relying on luck.