Backtest runner
@qtrader/backtest-runner
Backtest a trading idea on an OHLCV CSV with honest assumptions: next-bar fills, slippage, commission, no look-ahead. Built-in SMA crossover, RSI mean reversion, and buy-and-hold, plus a one-file plug-in format for your own strategies. Writes equity curve and trades CSVs and metrics (CAGR, volatility, Sharpe, Sortino, max drawdown, win rate, exposure). Not financial advice.
- Activity
- New: be the first to try it
- Installs
- 0 installs
- Likes
- 0 likes
- Clones
- 0 clones
What this kit declares, in the same words the CLI shows before you install. On Claude Code the CLI turns these into permission rules, so the agent stops anything undeclared.
Command
Runs the command: node scripts/backtest.mjs (with any arguments, without asking)
Command
Runs the command: node scripts/selftest.mjs (with any arguments, without asking)
Reads
Reads files in ./data/**
Reads
Reads files in ./strategies/**
Writes
Writes files in ./out/**
Writes
Writes files in ./strategies/**
- Works with
- claude-code
- License
- MIT
