manifoldbt Backtester executes a simple strategy rule over bars from a CSV or Parquet file, using SMA, EMA or RSI indicators, one entry condition, optional stop-loss and take-profit, and fees and slippage in basis points.
It pairs the engine’s fills into round trips and reports win rate, average win, average loss, maximum drawdown and parameter count, with warnings for small samples or missing costs. It then prints a command to hand the figures to backtest-expert. It measures a rule on past data and gives no investment advice.
What You Get
- A validated strategy spec with its parameter count
- Win rate, average win, average loss, maximum drawdown and trade count from real bars
- Warnings for fewer than 30 trades, a span under a year, no friction or mismatched win rates
- An optional JSON result file
- A ready-to-paste command for the backtest-expert evaluator
Common Use Cases
- Measuring a one-sentence moving-average or RSI rule on your own price data
- Getting real numbers before asking backtest-expert for a score
- Checking how fees and slippage change a short-holding-period edge
- Finding out how many parameters a strategy spec carries
What Makes It Unique
The skill documents four conversions that fail without an error: fills versus round trips, buy and sell alternation, costs on small trades and the sign of drawdown. It stops the handoff when there are no completed round trips, when drawdown is missing or when scratch trades are present, and it refuses shapes it cannot handle, such as shorting or multi-condition entries.
Under The Hood
Claude writes the spec file and runs Python scripts from the skill folder through the shell: run_backtest.py reads your data file and spec, validates the spec first and calls the manifoldbt engine, which you install with pip. It makes no network calls of its own and needs no API key. It can write a JSON result file and prints the evaluator command. Helper modules for validation, round trips and the metric bridge have no dependencies, and two reference files describe the spec fields and the conversions.