A quant trading platform for building, backtesting, and comparing trading strategies using algorithms, LLMs, or hybrid approaches.
This repository is the open-source, self-hostable core.
AlphaForge lets you:
- Build strategies using three approaches:
- Algorithmic (RSI, MACD, moving averages, mean reversion, momentum)
- LLM-based (market data + news -> buy/sell/hold signals)
- Hybrid (algorithmic signals filtered/confirmed by an LLM)
- Backtest against historical OHLCV market data with realistic slippage and commission models.
- Paper trade with simulated execution, position tracking, and portfolio management.
- Compare strategies side-by-side: P&L, Sharpe ratio, max drawdown, win rate.
Included here:
apps/web-oss: self-hostable app profilepackages/api,packages/db,packages/auth,packages/env,packages/effect,packages/infra
Not included here:
- hosted SaaS billing and subscription enforcement code
- internal ops/admin tooling
- TanStack Start
- tRPC
- Drizzle (SQLite/D1)
- Better-Auth
- Effect-TS
- TailwindCSS + shadcn/ui
- Turborepo
- Cloudflare Workers (Alchemy)
- Install dependencies
bun install- Configure environment
cp .env.example .env- Push database schema
bun run db:push- Start dev server
bun run devbun run dev:web
bun run build:web
bun run check-types
bun run deploySee .env.example.
MIT