Backtest Reality Check — Overfitting & Cost Auditor

    by 程向阳

    1

    The gap between those two numbers is where this skill lives.

    $24

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    Backtest Reality Check — Overfitting & Cost Auditor

    Example session with this skill installed

    Audit my btc-sample.csv using the ema-cross strategy with a 70/30 split and 50000 notional. Use the reviewer test key.

    • Read your context and instructions
    • Compiled the backtest reality check
    • Generated the data export

    Audited the strategy on a frozen train/test split and returned the verdict (REJECT, FRAGILE or SURVIVES), out-of-sample net and profit factor after fixed disclosed costs, the four overfitting checks, and a trade ledger reconciled to the cent (report.md + trades.csv).

    trades.csv

    CSV · data export

    Generated

    Example file from a real run - the skill writes it into your workspace.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    Your backtest says +412%. Your live account says otherwise. The gap between those two numbers is where this skill lives.

    Backtest Reality Check runs a strategy the way an auditor runs an audit — under rules designed to catch the four ways backtests lie:

    • Parameters tuned on the whole sample, reported as skill. The tool cuts your data by time (default 60/40). Parameters may only be inspected on train. The test segment runs exactly once, and positions are force-closed at the boundary so nothing straddles both worlds.
    • Lookahead fills. Signals are computed on the close of bar t and filled at the open of bar t+1. Indicators are causal. No exceptions, no flags to relax it.
    • Zero-cost fantasy. Every fill pays a fixed, disclosed 0.1% fee + 0.05% slippage per side. There is no switch to turn costs off, because a strategy that only works at zero cost does not work.
    • Headline numbers that don't add up. Every trade goes into a ledger (trades.csv). The program sums the ledger and compares it with the reported total — if they disagree by more than a cent, it refuses to write a report and exits nonzero.

    Then it grades the strategy like it means it:

    • Test sample size — under 20 out-of-sample trades is noise, and it says so.
    • Out-of-sample profitability — net and profit factor, after costs.
    • Train/test divergence — the overfitting signature: train looks great, test collapses or flips sign.
    • Parameter neighbourhood — the key parameter is moved ±20% and the test is re-run. If the conclusion flips sign, your "edge" was a knife edge.

    Verdict, first line of the report: REJECT (a hard red flag fired), FRAGILE (survived, with warnings), or SURVIVES (passed everything — which means "not caught lying on this data", never "guaranteed profit").

    What's inside: four built-in strategies (EMA cross, RSI rebound, ATR breakout, Bollinger reversion) with adjustable parameters, a full method document with every threshold written down, and a bundled synthetic sample so you can watch it work — and watch it reject an overfit strategy — before pointing it at your own data.

    Fully offline, zero dependencies. One Node.js program (Node 22+, standard library only). Your CSV never leaves your machine. Runs in demo mode on the bundled sample; a license key unlocks your own data files.

    Honest limits: long-only, single instrument, fixed notional, one split (not a walk-forward ensemble). It's an auditor, not an oracle — and not financial advice.

    Supports long-only, single-instrument strategies. No support for funding, borrow, or taxes. Requires Node.js 22+. Does not perform walk-forward ensembles.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 9 days ago

    Software
    Node.js

    Permissions

    Terminal / Shell
    Network Access
    Write Files
    Listed9 days ago

    What's inside

    Creator

    程向阳

    程向阳

    9 skills on Agensi

    Frequently Asked Questions

    This skill acts as a rigorous auditor that prevents 'paper wealth' by enforcing mandatory 0.1% fees and 0.05% slippage, while using frozen time splits to ensure your strategy isn't accidentally 'predicting' the past through lookahead bias.

    The skill is a zero-dependency Node.js 22+ CLI tool that generates portable Markdown, CSV, and JSON reports, making it compatible with any AI agent or research pipeline capable of executing shell commands.

    You receive the full CLI auditing engine, a suite of built-in strategy modules (like EMA and RSI), and a license key that enables the processing of custom OHLCV data files.

    Currently, the auditor is optimized for long-only, single-instrument strategies using fixed notional sizes to ensure the highest level of mathematical integrity for indicator-based research.

    Unlike LLM prompts that often hallucinate math or miss subtle data leakage, this is a deterministic engine that performs granular ledger reconciliation and ±20% parameter sensitivity probing for objective results.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.