AI Supervisor

An autonomous reviewer that proposes new versions of your strategy.

AI Supervisor

Every hour (configurable), the supervisor reviews each active bot's performance and optionally proposes a new ThunderScript version. It pulls:

  • Last 24h trades, P&L, win rate, avg win/loss
  • Per-symbol breakdown
  • Last 5 versions' performance snapshots
  • Top failing entry conditions
  • Current market regime (volatile/trending/range)
  • Your custom prompt (per-bot, max 500 chars)

It calls your bot's configured LLM with a structured prompt and parses a JSON response. If a valid ThunderScript is returned, it either auto-applies (default) or saves as a draft requiring your approval.

Supervisor settings are per-bot: enabled toggle, auto-apply toggle, custom prompt. System defaults (cadence, data window, etc.) are admin-controlled in /system → AI Supervisor.

Auto-Revert

If a version loses >$500 with >5 trades in 24h, the engine auto-reverts to the best historical version. The new active version's baseline is reset, so subsequent checks measure from this point forward (no thrashing). A persistent notification + push alert explains exactly why.

Versioning

Every Save creates a new version. The runtime keeps a performance_snapshot attached:

FieldDescription
total_pnlBot's lifetime P&L at version creation
total_tradesTrades count at creation
winning_tradesWins at creation
created_byuser, supervisor, or auto_revert
AiTrade docs