- Home
- Skills
- Trading & Investing
- Honest Backtest: Crypto Strategy Edge Checker
More screenshots
Works with the AI Agents you already use
Honest Backtest: Crypto Strategy Edge Checker
by Michael Lata
Backtests often yield false confidence by overfitting parameters to historical noise or accidentally peeking at future price data.
$12
Honest Backtest: Crypto Strategy Edge Checker
Example session with this skill installed
I have an EMA crossover idea: go long when the fast EMA is above the slow EMA. Try fast 9/12/20 and slow 26/50/100 on BTCUSDT 1h from 2024-01-01 to 2026-11-01. Is the edge real or am I just overfitting the parameters?
- Read your context and instructions
- Compiled the honest backtest
- Generated the document
I wrote your rules into a strategy file (9 parameter combinations), ran the look-ahead check (passed) and validated it on almost three years of hourly BTCUSDT candles (about 24,800) with 0.1% fees and 0.05% slippage per side.
Short answer: no, the edge isn't real. The best parameters (fast 20 / slow 100) made +21% on the tuning period but lost -25.8% on the 30% of data they had never seen. Random entries with the same number and length of trades did as well or better 69% of the time.
Honest Backtest report
Verdict: NO_EDGE. The strategy did not show a reliable advantage over chance or buy & hold on unseen data.
Selected parameters (chosen on in-sample data only): {'fast': 20, 'slow': 100}
Parameter combinations tested: 9
| Metric | In-sample | Out-of-sample |
|---|---|---|
| total_return_pct | 21.06 | -25.83 |
| cagr_pct | 10.11 | -29.64 |
| sharpe | 0.45 | -1.17 |
| max_drawdown_pct | -43.87 | -29.84 |
| num_trades | 110.00 | 55.00 |
| win_rate_pct | 28.18 | 23.64 |
| avg_trade_pct | 0.31 | -0.48 |
| exposure_pct | 53.86 | 48.14 |
| profit_factor | 1.23 | 0.65 |
Walk-forward (anchored)
| Fold | Return % | Sharpe | Params |
|---|---|---|---|
| 1 | 26.83 | 1.33 | {'fast': 20, 'slow': 100} |
| 2 | -17.39 | -0.95 | {'fast': 20, 'slow': 100} |
| 3 | -38.84 | -3.13 | {'fast': 12, 'slow': 100} |
| 4 | -9.28 | -0.52 | {'fast': 20, 'slow': 100} |
Benchmarks (out-of-sample)
- Positive walk-forward folds: 25%
- Buy & hold return: -11.28% (max drawdown -40.31%)
- Random-entry p-value (500 simulations): 0.694
Not financial advice. Past performance does not guarantee future results. This tool never places orders.
What this means
- It only worked in the first walk-forward fold, then lost money in the next three: classic regime luck, not a repeatable pattern.
- It lost more than simply holding BTC over the same period (-25.8% vs -11.3%), with a slightly smaller drawdown.
- A 24% win rate with a profit factor under 1 means the big winners no longer pay for the many small losses.
Honest next steps
- Don't trade this as-is, and don't keep tweaking EMA lengths until one passes: that is overfitting by another name.
- If you believe in the trend idea, add one filter with a reason behind it (e.g. only trade above the 200-period EMA), keep the grid small and re-validate.
- Try a higher timeframe (4h or 1d), where fees eat less of each trade.
- If a version ever reaches EDGE_LIKELY, paper trade it for several weeks before risking real money.
honest-backtest-crypto-strategy-edge-che.pdf
PDF · document
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
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
- Define strategy logic using the provided template: a parameter grid and a function that returns a 0/1 position per candle.
- Fetch market data automatically from Binance public endpoints (no account, no API keys) or load a local OHLCV CSV.
- Run the validation script, which performs the look-ahead check, grid search, out-of-sample test, walk-forward and random-entry benchmark.
- 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.
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 14 days ago
- Accounts
Binance
- Software
Python 3.10+pandasnumpy
Install the dependencies once with: pip install pandas numpy. No exchange account or API keys needed.
Permissions
Allowed Hosts
File Scopes
Terminal runs the Python validation scripts. Network access is used only to download public Binance price history (data-api.binance.vision, no keys). Files written: the strategy file you create, cached price data in .cache/ and the report in reports/. No orders are ever placed.
What's inside
Frequently Asked Questions
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.