# Walk-Forward Signal Validator

> Stress-test any trading or crypto signal with real walk-forward validation - catch beta capture, overfitting, and lucky-window backtests before they cost you money.

Walk-Forward Signal Validator is a paid AI agent skill on Agensi by Craig Milam, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Craig Milam](https://www.agensi.io/creators/craig-milam)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-08-30
- Security: scan passed (2026-08-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/walk-forward-signal-validator
- Tags: trading, backtesting-signals, crypto-analysis, python, quantitative-finance

## About this skill

Most "my backtest shows 65% win rate" claims don't survive contact with a proper out-of-sample test — and the reason is almost always one of a few repeatable mistakes, not bad luck. This skill runs any rules-based trading or crypto signal through four checks before it's trusted with capital:

 - Benchmark everything. A strategy's raw return means nothing without comparing it to just holding the asset — a "profitable" strategy that's really riding the market's own trend (beta capture) looks identical to a winning one until you compute the difference.
 - Expanding-window walk-forward folds, not a single train/test split — one backtest window is one lucky simulation, not a validated result.
 - Full-history testing, including a real drawdown. A short, favorable test window can completely invert the verdict — this skill documents an actual case where a 2-year window showed +2.85% "passing" alpha and the same signal, tested across full history including a crash, showed −1.16% and failed.
 - A real classification bar (FAIL / WEAK / STRONG), not just "mean alpha > 0" — and explicit discipline around testing multiple signal variants against the same data, so a single borderline pass out of many trials doesn't get mistaken for a discovery.

 Includes a dependency-free, tested reference implementation (scripts/walk_forward.py, Python standard library only) for the fold construction and classification math, plus a references/pitfalls.md walking through five real diagnosed failure modes with concrete before/after numbers. Built from lessons learned validating live trading-bot signals — not textbook theory.

## Known limitations

- Backtest math is intentionally minimal: no transaction costs, slippage, spread, or position sizing — it's an edge-detection tool, not a P&L simulator. Add costs before treating results as realistic.
 - Long/flat only — no short-selling support in the bundled script.
 - Expects a plain date,close CSV; anything intraday or needing open/high/low/volume requires adapting the script.
 - The bundled SMA(10/30) example signal is a placeholder to demonstrate the harness end-to-end, not a recommended strategy — bring your own signal logic.
 - Doesn't warn if a dataset is too short to produce a statistically meaningful number of folds — treat any result under ~10 folds with real skepticism regardless of its classification.
 - The multiple-comparisons guidance in the skill is a qualitative discipline (read the report, don't cherry-pick), not an automated statistical correction (e.g. no Bonferroni adjustment).
 - A STRONG classification means the signal showed genuine historical out-of-sample edge — it is not a guarantee of future or live performance, and is not by itself a recommendation to trade real capital.

## 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 Walk-Forward Signal Validator 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 validator differ from a standard backtest?

This skill uses expanding-window walk-forward validation and benchmark comparisons to identify if a strategy is actually generating alpha or just benefiting from market trends (beta capture) and overfitting.

### What specific files and assets are included in the purchase?

You receive a standalone Python reference implementation (scripts/walk_forward.py) using only the standard library, alongside a detailed pitfalls guide with real-world failure cases.

### Can I use this for both crypto signals and traditional stock market strategies?

Yes, the logic is asset-agnostic and designed to handle the high volatility and specific drawdown cycles common in both crypto and traditional equities.

### Which AI agents or platforms are compatible with this skill?

The core logic is written in dependency-free Python, making it compatible with any AI agent or environment that supports Python 3.x execution.

### How does the skill handle strategies that show a positive return but thin margins?

The skill provides a clear classification of FAIL, WEAK, or STRONG, ensuring you don't mistake a borderline statistical anomaly for a robust trading signal.

---

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.
