Works with the AI Agents you already use

    Backtest Integrity Audit

    by BanditXBT

    1

    Audit backtests for lookahead, survivorship, leakage, unrealistic fills and crypto data traps.

    $29

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    About this skill

    Assume the backtest is wrong until each information path is proven causal. Goal: every number used at decision time t was knowable, tradable, and priced realistically at t. Educational analysis, not investment advice; state assumptions and data sources.

    1. Timeline map. For each input (price, fundamental, signal, universe flag) record event time, availability time, decision time, execution time. Require available_at <= decision_time < execution_time.
    2. Shift test. Delay every feature by one bar (then one more for latency). Honest edge decays smoothly; a collapse (heuristic: >50% Sharpe loss from one bar) suggests same-bar information or fill optimism.
    3. Placebo tests. Permute signal ranks within date (expect IC and net Sharpe ~ 0); flip the signal sign (gross PnL should flip sign, net should be worse); run on synthetic random walks (any significant result is a bug).
    4. Truncation test. Run the pipeline on data cut at T-k and on the full sample; diff signals/positions at T-k. Any difference is lookahead (full-sample scalers, fitted models, forward-filled revisions).
    5. Reproduce a few trades by hand from raw tick/bar files, including fill price vs that bar's high/low.

    Lookahead

    • Same-bar signal and fill (close-to-close signal executed at that close): use next-bar open or modeled VWAP.
    • Full-sample statistics: z-scores, PCA, vol scaling, hyperparameters, imputation, regime/HMM fits. Use expanding/rolling fits only.
    • pandas traps: bar labeling in resample, shift(-1), rolling(center=True), bfill, merge_asof(direction='nearest'|'forward') (use 'backward' with tolerance).
    • Timezone/session mismatches; universe filters (ADV, price, cap) computed with future data.

    Survivorship and universe

    • Use point-in-time membership (index adds/deletes, listing/delisting dates), not today's constituents. Missing delisting returns bias results upward (Shumway 1997, "The Delisting Bias in CRSP Data").
    • Crypto: today's top-N includes only survivors. Rebuild from historical snapshots and include dead tokens, rugs, delisted pairs.

    Educational analysis, not investment advice. Heuristic thresholds are judgment calls, not tested rules.

    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 13 days ago

    Software
    Python 3pandas

    Permissions

    No special permissions declared or detected

    Listed13 days ago

    What's inside

    Frequently Asked Questions

    Audit backtests for lookahead, survivorship, leakage, unrealistic fills and crypto data traps.

    This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

    Connect your AI agent to Agensi through MCP, then ask it to use backtest-integrity-audit on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.