What problem does it solve?
Measuring a trading rule against real price data is error-prone: fills get miscounted as trades, drawdown signs get flipped, and frictionless runs inflate results. This Skill executes a strategy spec over OHLCV bars with the manifoldbt engine and produces the eight validated metrics the backtest-expert evaluator scores.
Core Features & Use Cases
- Declarative Strategy Specs: Define strategies in JSON using sma, ema, or rsi indicators with a single entry condition, optional stop-loss/take-profit, and fee/slippage modeling.
- Round-Trip Pairing: Converts raw fill logs into completed round trips with net-of-fee returns, correctly handling scaling, sign flips, and per-symbol position tracking.
- Evaluator Handoff: Emits the exact eight inputs (win rate, average win/loss, max drawdown, years tested, parameter count, and more) plus a ready-to-run command for the backtest-expert skill.
- Use Case: A trader describes an RSI oversold rule, runs it against two years of BTCUSDT bars with realistic fees, and receives measured win rate and drawdown figures ready for quality scoring.
Quick Start
Ask the assistant to backtest your trading rule by writing a JSON strategy spec and running scripts/run_backtest.py against your OHLCV CSV or Parquet data file.