Works with the AI Agents you already use
Backtest Integrity Audit
by BanditXBT
Audit backtests for lookahead, survivorship, leakage, unrealistic fills and crypto data traps.
$29
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.
- 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. - 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.
- 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).
- 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).
- 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.