/monte-neo:verify-strategyfrom monte-neo
Verifies trading strategy backtests for look-ahead bias, unpaid costs, and selection bias using the Monte-Neo verifier. Run before reporting any strategy metrics.
Ships in monte-neo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Backtests written quickly are usually wrong in the same ways: they read future bars, ignore fees and slippage, or report the best of many tried variants. Do not report strategy performance to the user until Monte-Neo has verified it.
open, high, low, close (and timestamp if available). For several symbols, save one long
table with timestamp and symbol columns (one row per timestamp and symbol).signal(df) -> positions
(+1 long, 0 flat, -1 short, or a weight in [-1, 1] such as 0.5; one value per row of df). Only use pandas / numpy
inside it, and compute everything from df (no file or network reads). If the strategy cannot be expressed that way, save the positions to a
.npy / .csv file instead (look-ahead probes then cannot run).n_trials.
If you tuned parameters, expose them as keyword arguments (signal(df, fast=20, slow=80))
and call the verify_grid tool with the grid ({"fast": [10, 20], "slow": [50, 100]}):
the verifier runs the search itself, counts the trials and adds a walk-forward check.verify_strategy MCP tool (server monte-neo) with ohlcv_path,
strategy_path (or signals_path), n_trials, and realistic
commission_bps / slippage_bps.
Without the MCP server, run:
monte-neo verify --ohlcv data.csv --strategy strategy.py --n-trials N --format json.| Verdict | What to do |
|---|---|
REJECT | The backtest is broken or loses money after costs. Fix what next_actions lists, then verify again. Never report the original numbers as real. |
NEEDS_MORE_EVIDENCE | Too few trades or Sharpe does not survive n_trials. Say so; test on more data. |
PASS_WITH_WARNINGS | Report results together with every warning. |
PASS | Report results with the certificate_id. |
Always tell the user the verdict, the certificate_id and the verifier metrics
(net return after costs, Deflated Sharpe, break-even cost) instead of the numbers from your
own backtest code. Never lower n_trials or costs to get a better verdict.
suggest_fix tool, write its patched
source to a new file, and verify that file. Do not keep the original because its numbers look good.ledger=true so each one is counted automatically.holdout_query; use register_hypothesis before the first run.discover_indicator, which counts the search and tests it against shuffled markets.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub neozork/monte-neo --plugin monte-neoOther plugins' skills for the same job