# Honest Backtest: Crypto Strategy Edge Checker

> Find out if your crypto trading strategy has a real edge or is just overfitting. Out-of-sample testing, walk-forward validation, look-ahead bias detection and a random-entry benchmark, with a plain-English verdict. No API keys, never places orders.

Honest Backtest: Crypto Strategy Edge Checker is a paid AI agent skill on Agensi by Michael Lata, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $12 (one-time purchase)
- Creator: [Michael Lata](https://www.agensi.io/creators/michael-lata)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-20); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/honest-backtest-crypto-strategy-edge-checker
- Tags: trading, python, crypto, overfitting, backtesting

## About this skill

Backtests often yield false confidence by overfitting parameters to historical noise or accidentally peeking at future price data. This skill subjects crypto trading strategies to rigorous out-of-sample validation and random-entry benchmarks to determine if a strategy has a genuine edge or is simply lucky.

### What it does
- **Out-of-sample testing**: parameters are tuned only on the first 70% of the data and graded once on the remaining 30%, which is never used to choose anything.
- **Anchored walk-forward validation**: re-optimises on past data and tests on the next unseen period, fold by fold, to check the edge is consistent and not one lucky stretch.
- **Look-ahead detection**: recomputes signals on truncated data at 50 random cut points and flags any strategy whose past signals change when future candles are added.
- **Monte Carlo benchmarking**: compares the strategy against 500 random-entry simulations with the same number of trades and holding times, and reports a p-value.
- **Overfitting analysis**: flags strategies that look great during tuning but collapse on unseen data, and warns when too many parameter combinations were tested.
- **Realistic execution**: next-candle fills, fees and slippage on every entry and exit, and a buy & hold comparison.

### How it works
1. **Define strategy logic** using the provided template: a parameter grid and a function that returns a 0/1 position per candle.
2. **Fetch market data** automatically from Binance public endpoints (no account, no API keys) or load a local OHLCV CSV.
3. **Run the validation script**, which performs the look-ahead check, grid search, out-of-sample test, walk-forward and random-entry benchmark.
4. **Review the verdict** in the markdown report: Edge Likely, No Edge, Overfit, Lookahead Bias or Insufficient Data, explained in plain English.

### Frameworks & tools
Requires Python 3.10 or higher with `pandas` and `numpy`. Uses Binance public data endpoints for crypto spot price history and supports local CSV imports for custom datasets.

### Why this beats prompting it yourself
Standard LLM prompts often generate code that peeks at future data or calculates global statistics that are impossible to use in real-time trading. They also tend to report the best in-sample result as if it were the expected performance. This skill enforces a strict data-leakage boundary and statistical benchmarks that a standard chat session does not verify.

### Use cases
- **Strategy vetting**: check whether a new EMA or RSI idea survives out-of-sample testing before you paper trade it.
- **Bias detection**: find "future-peeking" code that creates impossible win rates.
- **Benchmarking**: see whether a bot actually beats buy & hold or random entries.

### Known limitations
Long-only spot strategies. Requires at least 30 out-of-sample trades for a verdict; with fewer, the skill says so instead of guessing. Results describe the past only.

### Built from real losses
The method comes from nine rounds of optimising real crypto strategies (trend, volume and ATR filters, grid search, Bollinger mean reversion, funding-rate arbitrage, regime switching, BTC and DOGE). Most variants that looked profitable in-sample lost money out of sample. Open-source bot and full log: https://github.com/Whiteherobot/crypto-trading-bot

**Not financial advice. You trade at your own risk. This skill never connects to an exchange account, never asks for API keys and never places orders. If you trade live, you do it with your own exchange account and your own decisions.**

## Requires

- Python 3.10+
- pandas + numpy

Install the dependencies once with: pip install pandas numpy. No exchange account or API keys needed.

## 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 Honest Backtest: Crypto Strategy Edge Checker 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 'honest backtest' differ from a standard backtesting script?

It tunes parameters only on the first 70% of the data, grades them once on the 30% they never saw, re-checks with anchored walk-forward folds, and compares the result with 500 random-entry simulations. That tells you whether your results look like a genuine edge or like historical noise — something a standard backtest script does not check.

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

The skill includes the core Python validation engine, strategy definition templates, and a reporting module that generates a detailed markdown 'verdict' on your strategy's viability.

### Can I use this with any AI agent, and what are the technical requirements?

It is compatible with any AI agent or environment running Python 3.10+; you simply provide your strategy logic via the included template and the skill handles the data fetching and statistical heavy lifting.

### Are there any specific limitations on the types of trading strategies I can test?

Currently, the skill is optimized for long-only spot strategies and requires a minimum of 30 out-of-sample trades to provide a statistically significant verdict.

### Do I need to provide my own market data, or does the skill supply it?

The skill automatically fetches historical OHLCV data from Binance public endpoints, but it also supports local CSV uploads if you want to test strategies on other exchanges or custom assets.

### Will this tell me my strategy will make money?

No. It tells you whether a strategy showed a real edge on past data it was not tuned on. Even an EDGE_LIKELY verdict is not a guarantee: paper trade before risking money. Not financial advice.

### Do I need exchange API keys? Does it place trades?

No and no. It only downloads public price history from Binance (or reads your CSV). It never connects to an exchange account, never asks for keys and never places orders.

---

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.
