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.
/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:
| Field | Description |
|---|---|
total_pnl | Bot's lifetime P&L at version creation |
total_trades | Trades count at creation |
winning_trades | Wins at creation |
created_by | user, supervisor, or auto_revert |