TradeLabs AILearn

Monitoring Positions, P&L and Risk

Running algorithms need constant monitoring. Learn the key health, trading and risk metrics to track, how to design useful alerts and how to avoid alert fatigue.

Advanced3 min readUpdated 3 Oct 2026
Markdown
Lesson 8 of 11

An automated strategy that nobody watches is a risk waiting to happen. Live monitoring means tracking the health of the system, the behaviour of the strategy and the risk it is taking, in real time, with alerts that reach a human when something looks wrong. Good monitoring answers three questions at a glance: is the system running and connected, is it doing what it should, and is the risk within limits? The technical tooling is covered in Monitoring and Logging Systems; this lesson focuses on what to watch and why.

Three layers to monitor#

LayerQuestionExample metrics
System healthIs it running and connected?Process alive, heartbeat, CPU and memory, connection status, data latency
Strategy behaviourIs it doing what it should?Signals generated, orders sent, fill rate, rejects, trades vs expected
Risk and P&LIs the risk acceptable?Positions, exposure, daily P&L, drawdown, limit usage

Key metrics#

MetricWhy it matters
Market data freshnessStale data leads to bad decisions. Alert if no update in a set number of seconds
HeartbeatA regular "I am alive" signal; silence means a crash or hang
Order reject rateRising rejects suggest connection, permission or logic problems
Fill rate and slippageExecution quality versus expectations. See Slippage Analysis
Position vs expectedDetects missed fills or duplicate orders
Broker reconciliationInternal positions must match the broker's. See Trade Accounting and Reconciliation
Daily P&L and drawdownCompare against normal ranges and limits
Limit utilisationHow close each risk limit is to triggering

Designing good alerts#

PrincipleExplanation
ActionableEvery alert should require a decision or action
TieredInfo, warning and critical levels with different channels
SpecificSay what broke, where and the current value
Rate limitedOne alert per problem, not hundreds of repeats
RoutedCritical alerts reach a phone, not only an email inbox

Alert fatigue#

When alerts fire too often, people start ignoring them, including the important ones. Reduce noise by:

  • Removing alerts that never lead to action.
  • Raising thresholds that trigger on normal variation.
  • Grouping related alerts into one message.
  • Reviewing alert history weekly and tuning.

Dashboards#

A simple dashboard showing system status, positions, P&L, open orders and recent errors lets a human check everything in seconds. Keep it focused: if everything is highlighted, nothing is.

Daily routines#

WhenCheck
Before the openSystems connected, positions reconciled, limits set, data flowing
During the sessionAlerts, P&L against expectations, unusual activity
After the closeReconcile positions and fills, review errors and slippage, archive logs. See Post-Trade Analysis

Frequently asked questions#

What should I monitor on a trading bot?#

System health (heartbeat, connections, data freshness), strategy behaviour (orders, fills, rejects) and risk (positions, P&L, drawdown and limit usage).

How do I get alerts from a trading bot?#

Send them through messaging services such as email, SMS, Telegram or chat webhooks, with critical alerts routed to a phone. See Alerts and Webhooks.

What is a heartbeat in trading systems?#

A regular signal a process sends to show it is alive; if it stops, the monitoring system raises an alert.

Next, learn how to make systems fail safely in Alerts, Error Handling and Reconnection.

Check your understanding

3 quick questions on this lesson. Get them all right to finish it.

Turn on JavaScript to take the quiz.

Finished this lesson?Sign in to save your progress across devices.
Next lessonAlerts, Error Handling and ReconnectionTrading systems face rejected orders, disconnects, bad data and partial fills. Learn how to classify errors, retry safely, use idempotent orders and fail closed.

Mentioned in