Quant Agent
A local-first AI quantitative research framework. Backtest, paper trade and evaluate strategies — with live trading deliberately blocked behind real guardrails.
Overview
Quant Agent is a modular research framework for systematic trading: data providers, strategies, backtesting, risk controls, brokers and agents each have a defined boundary. It is designed to produce evidence, not promises — the default mode is backtest or paper trading, and the live path requires multiple deliberate confirmations.
The v2.1 release added multi-provider data collection (yfinance, AKShare, Alpha Vantage), GUI configuration for LLM providers, news sentiment overlays, and a research loop that can propose strategy-paper promotion without ever granting live eligibility automatically.
Highlights
Four strategies, one framework
MA cross, RSI, MACD momentum and Bollinger mean-reversion with shared parameter tuning and search spaces.
Risk before returns
Every order passes a risk manager with position, notional, daily-loss and drawdown limits — plus stop-loss and take-profit handling.
LLM research, not execution
Agents submit JSON proposals that are converted to orders only through the gateway. They never touch a broker directly.
Metrics that matter
Sortino and Calmar ratios, average trade P&L, win/loss streaks, and half-Kelly position sizing.
Every order follows the same path
Live submission requires all of: live mode, an explicit enable flag, a disabled kill switch, ALPACA_PAPER=false, a typed risk acknowledgment, a separate order approval, and passing every risk check. Any missing guard stops the order.
Research workflow
| Backtest | Daily research loop over all strategies with performance comparison |
| Self-improvement | Walk-forward validation with review agents and a model registry |
| Promotion stages | RESEARCH → CANDIDATE → PAPER → LIVE_ELIGIBLE (human approval only) |
| News overlay | Sentiment can reduce size or force HOLD; it cannot bypass risk checks |
| Audit trail | Every order and response written to JSONL logs, secrets never recorded |
| Paper broker | Alpaca paper API with dry-run defaults |