Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

backtest-expert

Skill by tradermonty

Backtest Expert guides an AI assistant through systematic backtesting of trading strategies, favoring strategies that hold up under pessimistic assumptions. It is for quantitative and systematic traders who want to test robustness, avoid overfitting, and check for bias.

  • Score 91
  • 9.2k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install backtest-expert

Built from the published package, never by AI.

git clone --depth 1 https://github.com/tradermonty/claude-trading-skills /tmp/claude-trading-skills && mkdir -p ~/.claude/skills && cp -r /tmp/claude-trading-skills/skills/backtest-expert ~/.claude/skills/backtest-expert

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install backtest-expert in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

Backtest Expert is an agent skill that gives an AI assistant a structured method for backtesting systematic trading strategies. It is built around finding strategies that break the least, not ones that profit the most on paper. The workflow covers stating a hypothesis, codifying rules with no discretion, running an initial backtest, stress testing parameters and execution friction, and walk-forward out-of-sample validation.

The skill includes an evaluation script that scores backtest metrics across five dimensions: Sample Size, Expectancy, Risk Management, Robustness, and Execution Realism. It writes JSON and Markdown reports with a machine-readable decision and blocking reasons. The script needs Python 3.9 or later and no API keys. It is aimed at quantitative and systematic traders who want to test for overfitting and bias before live trading.

Written from the project's SKILL.md and checked against it.

What it can do

  • Hypothesis and rule codificationGuides the user to state a one-sentence edge and define entry, exit, sizing, filters and universe with no discretion.
  • Stress testingCovers parameter sensitivity, slippage increases, worst-case fills, order rejections and pessimistic commissions.
  • Walk-forward validationExplains rolling optimization and out-of-sample testing, with warning signs to watch for.
  • Time robustness checksReviews year-by-year performance and regime behavior so results do not rely on one or two periods.
  • Sample size guidanceSets minimum and preferred trade counts for statistical confidence.
  • Evaluation scriptScores backtest inputs across five dimensions and produces a decision with blocking reasons.
  • Bias and failure referenceDescribes common failure patterns such as look-ahead bias, survivorship bias and curve-fitting.

What you need

  • Python 3.9 or later for the evaluation script

Try asking

  • Stress test my mean-reversion strategy for parameter sensitivity and slippage
  • Walk me through walk-forward validation for my backtest results
  • Run the backtest evaluation on 150 trades with a 62% win rate

Good to know

  • Metrics are user-provided, with no external data dependencies
  • The quality score is diagnostic; the decision and blocking reasons are authoritative
  • Designed for systematic traders; may not apply to discretionary setups
  • Invalid inputs make the evaluation script exit with status 1 and no report

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/backtest-expert/SKILL.md, skills/backtest-expert/scripts/evaluate_backtest.py, skills/backtest-expert/scripts/tests/conftest.py, skills/backtest-expert/scripts/tests/test_evaluate_backtest.py. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md10 KB
  • references/failed_tests.md8 KB
  • references/methodology.md7 KB
  • requirements.txt70 B
  • scripts/evaluate_backtest.py22 KB
Show all 7 files
  • scripts/tests/conftest.py690 B
  • scripts/tests/test_evaluate_backtest.py36 KB

Alternatives to backtest-expert

All alternatives →

Compare with meme-rush, okx-market or saas-metrics-coach

backtest-expert: common questions

What does the backtest-expert skill do?

It guides systematic backtesting of trading strategies with a focus on robustness, stress testing and out-of-sample validation. It also includes an evaluation script that scores backtest metrics.

Does backtest-expert need an API key?

No. The source states that no API keys are required and that the evaluation script needs Python 3.9 or later.

Does the skill fetch market data?

No. The source says there are no external data dependencies and that metrics are provided by the user.

How do I install backtest-expert?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is backtest-expert free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is backtest-expert safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to backtest-expert?

Similar skills: meme-rush, okx-market, saas-metrics-coach, sec-edgar.

backtest-expert Install

Add to stack

Loading.