Backtest Expert gives the agent a step-by-step method for testing systematic trading strategies: state the hypothesis, codify the rules, run the test over several years, stress the parameters and costs, then check out-of-sample results.
It also ships a Python script that takes the summary numbers of a backtest (trades, win rate, average win and loss, drawdown, years tested, parameter count, whether slippage was tested) and scores them. The script reports a decision, the reasons that blocked it, and red flags. It is a review aid for research and does not give investment advice.
What You Get
- A six-step backtesting workflow from hypothesis to out-of-sample validation
- A Python script that scores sample size, expectancy, risk management, robustness and execution realism
- A JSON report and a Markdown report with the decision, blocking reasons, red flags and input values
- Two reference files, one on methodology and one on common failure patterns
Common Use Cases
- Checking whether a backtest result is believable before relying on it
- Finding which assumptions (slippage, parameter values, test period) a strategy depends on
- Setting a personal drawdown limit and seeing whether a backtest exceeds it
- Reviewing a strategy for signs of look-ahead bias or curve fitting
What Makes It Unique
The script treats its decision field as the authority and the 0-100 score as a diagnostic. Gates such as fewer than 30 trades, a drawdown of 50 percent or more, no slippage test, a test period under five years or results that look too good override a high score. Expectancy and profit factor are computed in exact decimal arithmetic so a break-even strategy cannot pass on floating point noise.
Under The Hood
The agent reads SKILL.md and, when needed, two Markdown reference files. To score a backtest it runs one local Python script with command line numbers; the script uses only the standard library, makes no network calls and needs no API keys. It writes a timestamped JSON file and a Markdown file into an output folder (reports/ by default), so it creates files on disk. Nothing else is fetched or executed.