Strategy State Machine
Pending
Strategy created, thread not yet started.
Running
Actively trading in a background thread.
Paused
Thread alive but not quoting. Orders canceled.
Stopping
Graceful shutdown in progress.
Stopped
Thread finished, engine idle.
Failed
Thread crashed with an error.
Retired
Permanently stopped. Can be removed.
Quick Start
Strategy Management
Accessing Engines
Each strategy gets its ownEngine instance running in a daemon thread.
Strategy Scaling
| Trigger | Action |
|---|---|
| Positive Sharpe after N days in staging | Promote to live with initial capital |
| Sustained profitability | Ramp up capital on schedule |
| Drawdown exceeds threshold | Auto-pause by risk monitor |
| No edge detected for N days | Retire strategy |
| LLM conviction change | Adjust capital proportionally |
A/B Testing
Run two versions of a strategy simultaneously, each with a fraction of the allocated capital, and compare performance:Strategy Templates
Pre-built templates that the LLM can parameterize and deploy:| Template | Pipeline | Key Parameters |
|---|---|---|
| Directional | signal -> kelly_sizer -> submit | signal_source, kelly_fraction, max_position |
| Market Maker | fair_value -> spread -> quote | spread_width, size, inventory_limit |
| Arbitrage | detect -> size -> execute | min_edge, max_position, exchanges |
| Copy Trading | wallet_signal -> filter -> mirror | target_wallets, min_confidence, delay |
| Event-Driven | catalyst -> position -> manage | catalyst_type, sizing_method, exit_rule |
Configuration
MCP Tools
| Tool | Description |
|---|---|
deploy_strategy | Launch a strategy from template + parameters |
stop_strategy | Gracefully stop a running strategy |
list_strategies | All strategies with health and P&L |
promote_strategy | Move from staging to live |
scale_strategy | Adjust capital allocation |