# Backtest Reality Check — Overfitting & Cost Auditor

> Every other backtest skill tells you how much money you'd have made. This one tells you whether the backtest is lying: frozen train/test split, a trade ledger that must reconcile to the cent, fixed disclosed costs, and overfitting red flags with a three-word verdict — REJECT, FRAGILE, or SURVIVES.

Backtest Reality Check — Overfitting & Cost Auditor is a paid AI agent skill on Agensi by 程向阳, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $24 (one-time purchase)
- Creator: [程向阳](https://www.agensi.io/creators/creator-1452)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.1
- Last updated: 2026-11-26
- Security: scan passed (2026-11-26); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/backtest-reality-check-overfitting-cost-auditor
- Tags: trading, backtesting-liquorice, finance, quantitative-analysis, node-js

## 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.

## Requires

- Node.js

## Known limitations

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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Backtest Reality Check — Overfitting & Cost Auditor skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does this skill prevent the common 'overfitting' issues found in standard backtesting tools?

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.

### What technical environment do I need to run the Backtest Reality Check?

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.

### What exactly is included in the purchase of this skill?

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.

### Does this skill support multi-asset portfolios or short-selling strategies?

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.

### Why should I use this tool instead of just asking an AI to analyze my strategy results?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
