Bots & Automation

Monitoring Trading Bots Without Alert Fatigue

What to monitor when a trading bot runs live - heartbeat, execution, risk and behaviour against the backtest - and how to design alerts that are rare, actionable and never ignored.

By AlgoXP3 min readUpdated

Monitored bot metric with an alert threshold where only one meaningful alert fires

A trading bot that runs unattended needs someone - or something - watching it. But watching does not mean receiving a notification for every tick, trade and warning. Most traders who add monitoring end up with too many alerts, start ignoring them, and miss the one that mattered. Good monitoring is about seeing the state of things on demand and being interrupted only when you must act.

Monitoring vs. alerting

Monitoring Alerting
Purpose Understand state and history Demand action now
Form Logs, dashboards, daily summary Push notification
Frequency Continuous Rare
Example Equity curve, open positions, last trades “Daily loss limit hit - trading paused”

The rule of thumb from operations engineering applies to trading too: alert on symptoms that need a human, keep everything else in dashboards and logs.

What to monitor

1. Is it alive?

  • Heartbeat: the bot writes or sends a sign of life at a fixed interval.
  • Connection to the trading server.
  • Last processed bar or tick time.

2. Is it executing correctly?

  • Order rejections and their reasons.
  • Slippage and spread at entry compared with what the strategy assumes.
  • Positions without stops (should never exist).
  • Duplicate positions after restarts.

3. Is risk under control?

  • Open risk in R or percent of equity.
  • Daily and weekly P/L against limits.
  • Margin level and exposure.

4. Is it behaving like the backtest?

  • Trade frequency, win rate, average win and loss in R.
  • Drawdown compared with the backtest’s distribution.

Designing alerts people do not ignore

Alert only on conditions that require action. If the right response to an alert is “OK, nothing to do”, it should not be an alert.

Alert on symptoms, not every cause. “No trades and no heartbeat for 30 minutes during market hours” is better than separate alerts for every possible reason.

Use levels.

Level Example Delivery
Critical Bot stopped; position without stop; loss limit breached Immediate push
Warning Repeated order rejections; slippage far above normal Push, rate-limited
Info Trades, daily P/L Daily summary

Rate-limit and group. One message for “5 rejections in 10 minutes”, not five messages.

Make every alert actionable. Include what happened, the current state and what to check: [GoldTrend] Daily loss -2.0% reached. 0 open positions. Trading paused until 00:00 server time.

Watching for silence

The most dangerous failures are quiet: the bot crashed, the computer slept, the connection died. Nothing errors, so nothing alerts. Monitor absence:

  • no heartbeat for N minutes while the market is open;
  • no bar processed for longer than one bar period plus a margin;
  • no trade for much longer than the strategy’s normal gap between trades.

The last one also detects logic changes - a filter that accidentally blocks every signal.

A daily summary instead of trade spam

A single message after the session often replaces dozens of trade notifications:

  • trades today, net R, equity change;
  • current drawdown from peak;
  • any warnings during the day;
  • confirmation that every running bot is alive.

Comparing live behaviour with expectations

Once a week, put live statistics next to backtest ranges. If the bot traded 3 times when the backtest expects 10-14 trades per week, something is wrong even if nothing errored. See why forward testing matters.

Where bots run matters

On cTrader, cloud instances keep running when your computer is off, while local instances run in your desktop app or on a server and can use more features, such as outgoing internet requests for notifications. If you rely on alerts sent by the bot, check that your environment supports them - or monitor the account from outside.

Key takeaways

  • Monitor continuously, alert rarely.
  • Alert only on symptoms that need a human, with clear levels and rate limits.
  • Watch for silence: missing heartbeats and missing trades.
  • Replace trade-by-trade spam with a daily summary.

FAQ

What is alert fatigue?

When alerts fire so often, or so often without consequence, that people start ignoring them - and then miss the one that matters. It is solved by sending fewer, more meaningful alerts, not by adding more.

What is a heartbeat?

A regular signal from the bot, for example a log line or a ping every few minutes, that proves it is alive. Monitoring the absence of the heartbeat catches crashes and disconnections that produce no error message.

How do I know if a bot is behaving differently from its backtest?

Compare live trade frequency, win rate, average R and slippage with the ranges the backtest suggests, on a weekly basis. Large and persistent deviations are a reason to investigate.

Sources and further reading

  1. Prometheus: Alerting best practices - prometheus.io
  2. cTrader Help: Start a cBot (cloud and local instances) - help.ctrader.com