AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Live Trading Monitoring

skill-brainbytes-dev-everything-claude-trading-live-trading-monitoring · by brainbytes-dev

A Claude skill from brainbytes-dev/everything-claude-trading.

No reviews yet
0 installs
9 views
0.0% view→install

Install

$ agentstack add skill-brainbytes-dev-everything-claude-trading-live-trading-monitoring

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-brainbytes-dev-everything-claude-trading-live-trading-monitoring)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
4mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Live Trading Monitoring? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Live Trading Monitoring

name: live-trading-monitoring description: Live trading monitoring — drift detection, performance tracking, kill switches. origin: ECT

When to Activate

  • User is transitioning a strategy from backtest to live trading
  • Designing live monitoring dashboards and alerting systems
  • Building kill switches and automated risk controls
  • Detecting strategy drift (live performance deviating from backtest expectations)
  • Setting up daily reconciliation and P&L tracking processes

First Questions

  1. What type of strategy is going live (systematic equity, CTA, options, stat arb)?
  2. What is the expected Sharpe, drawdown, and turnover from the backtest?
  3. What broker/execution platform is being used?
  4. What is the risk budget and maximum acceptable drawdown?
  5. Who is responsible for monitoring (automated, manual, or hybrid)?

Core Concepts

Live vs Backtest Performance Gap

Every strategy performs differently live than in backtest. Understanding the sources of divergence is critical.

Common sources of live-backtest divergence:

  1. Execution slippage:
     - Backtest assumes fill at close/VWAP; live fills at actual market price
     - Market impact: large orders move price against you
     - Timing: signal generated at close, executed next day at open
     - Expected cost: 5-50 bps per trade depending on liquidity

  2. Data differences:
     - Live data feed differs from historical data source
     - Corporate actions applied differently
     - Vendor switches or data corrections in backtest period
     - Missing data handled differently in live vs backtest

  3. Look-ahead bias leakage:
     - Subtle biases not caught in backtest review
     - Features that used future data inadvertently
     - Only becomes apparent when live returns underperform

  4. Regime change:
     - Market regime shifts between backtest period and live trading
     - Correlations change, volatility regime changes, crowding effects
     - Strategy may have been overfit to backtest regime

  5. Operational errors:
     - Position sizing errors, wrong ticker, order entry mistakes
     - API failures, missed signals, stale data
     - Timezone issues, holiday calendar mismatches

Expected divergence benchmarks:
  Good: live Sharpe within 70-80% of backtest Sharpe
  Acceptable: live Sharpe within 50-70% of backtest Sharpe
  Concerning: live Sharpe below 50% of backtest Sharpe
  Action required: live Sharpe negative when backtest was positive

P&L Tracking

P&L decomposition framework:

  Gross P&L:
    Total return from positions before costs
    Track daily, weekly, monthly, yearly
    Compare to backtest expected return

  Net P&L:
    Gross P&L - commissions - slippage - financing costs - data costs
    This is the real return; always monitor net, not gross

  Attribution:
    By signal/factor: which signals contributed to P&L?
    By asset/sector: which positions drove returns?
    By time: when did P&L accrue (overnight vs intraday)?
    By trade type: long vs short contribution

Daily P&L tracking:
  Mark-to-market: value all positions at current market prices
  Realized P&L: from closed trades (known)
  Unrealized P&L: from open positions (mark-to-market)
  Total P&L = Realized + Unrealized
  Reconcile: total P&L should match broker statement

Key metrics to track daily:
  - P&L (dollar and percentage)
  - Sharpe ratio (rolling 30-day, 90-day, inception)
  - Max drawdown (inception and trailing 12-month)
  - Gross and net exposure
  - Beta exposure (to market, sectors, factors)
  - Number of positions, turnover
  - Largest single-position P&L (concentration risk)

Drift Detection

Drift detection identifies when a live strategy's behavior deviates significantly from its backtest expectations.

Statistical drift detection methods:

  1. Return distribution comparison:
     H0: live returns come from same distribution as backtest returns
     Test: Kolmogorov-Smirnov test or Anderson-Darling test
     Window: rolling 60-90 trading days
     Alert: p-value  2 standard deviations from expected

  5. Turnover drift:
     Expected monthly turnover from backtest
     Alert: actual turnover > 2x expected (signals may be noisy or unstable)
     Alert: actual turnover  threshold h
  Advantage: detects gradual drift, not just sudden breaks

Kill Switch Design

Kill switches are automated rules that halt or reduce trading when predefined conditions are met.

Kill switch hierarchy:

  Level 1 — Warning (automated alert, human reviews):
    - Daily P&L loss > 1.5% of NAV
    - Rolling 5-day P&L  2% of NAV
    - Signal quality (IC) drops below threshold
    - Data feed staleness > 15 minutes during market hours

  Level 2 — Reduce (automated position reduction):
    - Daily P&L loss > 2.5% of NAV: reduce all positions by 50%
    - Rolling 10-day loss > 5% of NAV: reduce to 25% of target exposure
    - Drawdown from peak > 10%: reduce to 50% of target exposure
    - VIX > 40: reduce gross exposure by 50%
    - Market circuit breaker triggered: flatten all intraday positions

  Level 3 — Halt (automated full stop):
    - Daily P&L loss > 5% of NAV: flatten all positions
    - Drawdown from peak > 15%: halt all new trades, begin orderly unwind
    - System error: unreconciled positions, API failure, pricing error
    - Data integrity: more than 10% of universe with stale or missing data
    - Any position exceeds hard risk limits (concentration, sector, factor)

Implementation:
  - Kill switches must be independent of the trading system
  - Run on separate server/process (survives trading system crash)
  - Pre-market check: verify all systems operational before market open
  - Real-time monitoring: check P&L and risk every 1-5 minutes during market hours
  - Post-market check: full reconciliation after market close
  - Manual override: require two-person authorization to disable kill switch

Alert System

Alert design principles:
  - Actionable: every alert should have a defined response procedure
  - Prioritized: not all alerts are equal (P&L breach vs data delay)
  - Non-redundant: avoid alert fatigue from duplicate/noisy alerts
  - Escalating: Level 1 to analyst, Level 2 to PM, Level 3 to CRO

Alert channels:
  - Slack/Teams: for Level 1 warnings (informational)
  - SMS/phone call: for Level 2 and Level 3 (requires immediate action)
  - Email: for daily summaries and non-urgent issues
  - Dashboard: real-time display for continuous monitoring

Key alerts to implement:
  Performance:
    - P&L breach at daily/weekly/monthly thresholds
    - Drawdown breach (trailing and inception)
    - Sharpe deviation from expected (rolling window)

  Risk:
    - Gross/net exposure outside target range
    - Factor exposure drift beyond tolerance
    - Concentration: single position > X% of NAV
    - Leverage approaching limit

  Operations:
    - Order rejection or partial fill
    - Data feed latency or gap
    - Reconciliation break (positions or cash mismatch)
    - System resource issues (memory, disk, connectivity)

  Market:
    - VIX spike above threshold
    - Market circuit breaker triggered
    - Liquidity deterioration (bid-ask widening in key holdings)

Daily Reconciliation

End-of-day reconciliation process:

  1. Position reconciliation:
     Internal system positions vs broker statement positions
     Check: every ticker matches, every quantity matches
     Threshold: zero tolerance for position mismatches
     Common causes: missed fills, corporate actions, settlement errors

  2. Cash reconciliation:
     Internal cash balance vs broker cash balance
     Include: settled and unsettled transactions
     Threshold:  50% of backtest max drawdown = reduce to Phase 2 sizing

Quality Gate

Before going live with a trading strategy:

  • [ ] Paper trading completed with no system errors (2+ weeks)
  • [ ] Live P&L tracking system verified against broker statements
  • [ ] Kill switches tested (simulate each trigger level)
  • [ ] Alert system configured and tested (all channels verified)
  • [ ] Daily reconciliation process automated and tested
  • [ ] Drift detection thresholds calibrated to backtest distribution
  • [ ] Data pipeline monitoring in place (staleness, gaps, quality checks)
  • [ ] Execution quality measurement operational (slippage, fill rate)
  • [ ] Disaster recovery plan documented (system failure, data loss, broker outage)
  • [ ] Escalation chain defined (who to call at each alert level, 24/7 coverage)

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.