Validate a strategy/signal (honest backtest)
validate_strategyDoes this strategy survive an honest test? Backtest a trading strategy honestly — look-ahead-aware validation with Deflated-Sharpe-Ratio / multiple-testing correction (Bailey & López de Prado). Returns an EVIDENCE verdict (insufficient_evidence | anecdote | failed_oos | passed_oos) plus metrics, flags and caveats — NOT a buy/sell recommendation. Call this before acting on a strategy or signal list. Accepts a named catalog strategy (type=rules), a timestamped BUY/SELL signal list (signal_list), or a timestamped trade list (trade_list). Checks: realistic next-bar fills (look-ahead/optimism), net of cost, out-of-sample split, and a hard 30-round-trip sample gate (under 30 is always "anecdote"). Not reproducible via generic backtest tools that ignore overfitting. [API Pro tier]
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| oos | No | How the claim is tested out-of-sample. Omit for the default split — the out-of-sample part is what separates a finding from a fit. | |
| costs | No | Trading costs. Default 10 bps (crypto) / 5 bps (else) — a gross-only claim usually shrinks once these apply. | |
| market | Yes | Which market the claim is about — prices are re-fetched from here, not taken from you. | |
| window | Yes | Period over which the claim is checked. | |
| strategy | Yes | The claim being validated — supply exactly one of: a catalog strategy (type=rules), your signals (type=signal_list) or your finished trades (type=trade_list). |