Every backtest is a lie. It tests one history, the one that happened. QuantForge tests a thousand histories that could have.
Live demo: frontend-gamma-ten-23.vercel.app
QuantForge is a trading strategy stress-testing platform. You describe a strategy in plain English. A six-agent AI pipeline parses it into executable Python, imagines two hundred synthetic market histories with a financial foundation model, runs your strategy against every one of them, and tells you whether your edge is real or just survivorship bias wearing a suit.
- Open the live demo.
- Pick a preset like "Buy when 50-day MA crosses 200-day MA" or type your own idea in plain English.
- Hit Forge. Watch the pipeline run: Parse → Imagine → Test → Analyze.
- Read the dashboard: real equity curve against a fan of 200 synthetic histories, return/drawdown/Sharpe distributions, probability of ruin, overfitting percentile.
- Hit Play on the narrated verdict. The browser reads the analyst summary out loud using the Web Speech API in demo mode, or streams VibeVoice-1.5B audio when a live backend is attached.
- Switch to the Evolve tab to see a baseline strategy ranked against ten auto-generated mutations.
The live demo runs in fully static demo mode (zero backend, pre-computed fixtures) so the pitch works even when the Colab GPU is asleep. Point it at a real backend by setting NEXT_PUBLIC_BACKEND_URL and the frontend automatically calls the FastAPI service instead.
| Persona | What they want | What QuantForge gives them |
|---|---|---|
| Retail algo trader | "My RSI bot returned 60% in backtest. Real or lucky?" | The overfitting percentile and ruin probability in one click. |
| Quant fund analyst | Regime-conditioned stress test before deploying capital | A distribution of returns across 200+ synthetic histories. |
| Finance professor | A live demo of overfitting for a classroom | Browser-native tool, no install, narrated verdict. |
| Fintech platform | Add strategy validation to their product | Typed JSON API, swappable market generator, MIT licensed. |
Traditional backtesting tests your strategy against one history: the one that actually happened. That history happened once. You don't know whether your 40% return is genuine alpha or a lucky path through a distribution of outcomes you never got to see.
QuantForge generates the distribution. If your strategy returns 40% in the real history but loses money in 873 out of 1,000 imagined alternatives, you are not investing. You are gambling. The overfitting percentile tells you the difference in one number.
Six specialized agents, one orchestrator, zero framework code.
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ 1. Strategy │ │ 2. Market │ │ 3. Backtester │
│ Architect │──▶│ Imaginer │──▶│ (pure compute)│
│ (Claude) │ │ (GBM/Kronos) │ │ │
│ English → Py │ │ → 200 markets │ │ → metrics │
└──────────────────┘ └──────────────────┘ └────────┬─────────┘
│
┌──────────────────┐ ┌────────▼─────────┐
│ 5. Narrator │◀──│ 4. Analyst │
│ (VibeVoice) │ │ (Claude) │
│ text → audio │ │ → verdict │
└──────────────────┘ └──────────────────┘
Evolve flow adds one agent:
┌──────────────────┐
│ 6. Mutator │──▶ 10 variants reuse the same
│ (Claude) │ market set (Kronos called once)
└──────────────────┘
Read docs/ARCHITECTURE.md for the full system diagram, data flow, and per-agent contracts.
| Layer | Choice |
|---|---|
| Frontend | Next.js 15 (App Router), TypeScript strict, Tailwind, Recharts |
| Backend | FastAPI, Pydantic v2, structlog, asyncio |
| Models | Anthropic Claude, Kronos-mini (alternate), GBM (primary) |
| Quality | mypy strict, ruff, black, pytest, vitest, pre-commit hooks |
| CI | GitHub Actions on every commit |
# Backend
cd backend
python -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
pytest
uvicorn main:app --reload
# Frontend (separate terminal)
cd frontend
npm install
npm run devOpen http://localhost:3000. With no NEXT_PUBLIC_BACKEND_URL set, the app runs in demo mode against the bundled fixtures. To hit your local FastAPI service instead, create frontend/.env.local:
NEXT_PUBLIC_BACKEND_URL=http://127.0.0.1:8000
Full setup including environment variables, model provisioning, and troubleshooting lives in docs/SETUP.md.
The frontend is a static Next.js app and runs free on Vercel's hobby tier:
cd frontend
npx vercel --prodThe backend runs happily on a Colab notebook exposed via ngrok (see colab/quantforge_backend.ipynb) or any container host. Because demo mode is the default, the frontend ships and works even without a backend attached, which keeps the pitch reliable.
v1 (shipping): Forge tab (stress-test a single strategy) and Evolve tab (mutate a strategy into ten variants, rank by overfitting percentile). Two real routes, two real user flows.
v2 (roadmap): Arena (head-to-head strategies), Regimes (regime-conditioned stress testing), Live (real-time Binance feed with on-the-fly prediction bands). See docs/ROADMAP.md.
| Doc | What it covers |
|---|---|
| VISION.md | The thesis, the market, the long-term bet |
| PROBLEM.md | Why overfitting is invisible and expensive |
| ARCHITECTURE.md | System diagram, agent contracts, data flow |
| TECHNICAL.md | Deep dive on each agent and the math |
| USER_STORIES.md | Four personas, four flows |
| ROADMAP.md | v1, v2, v3, v4 phases |
| COMPETITIVE.md | QuantForge vs QuantConnect, Backtrader, walk-forward, Monte Carlo |
| TEAM.md | Who is building this and why |
| SETUP.md | Local dev setup, env vars, model provisioning |
| TROUBLESHOOTING.md | Common failures and fixes |
| API.md | Every endpoint, request/response schema, error codes |
| TESTING.md | Coverage policy, fixtures, what's mocked |
| SECURITY.md | safe_exec, secrets, input validation |
| SCHEMA.md | Typed JSON contract between backend and frontend |
| adr/001-multi-agent-architecture.md | Why functional modules, not a BaseAgent framework |
| adr/002-gbm-as-primary-generator.md | Why GBM is primary, Kronos alternate |
MIT. See LICENSE.