Backtest integrity check (deflated Sharpe + regime coverage)
backtest_integrityUSE WHEN you have a backtest result (Sharpe, trials tried, window) and want to know whether it is likely overfit. Given an annualized Sharpe, the number of configurations tried and the window (YYYY-MM-DD), returns the DEFLATED Sharpe (the expected maximum Sharpe by chance grows with the trial count: Bailey & Lopez de Prado), which CRISIS regimes the window never contained, and a base-rate caveat. An unknown trial count flags the Sharpe as not-deflatable / UNPROVEN. All inputs optional; give as many as known. Descriptive, not advisory.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "backtest_integrity"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kurt | No | Kurtosis of the strategy's returns (3 = normal). | |
| skew | No | Skewness of the strategy's returns (0 = symmetric). | |
| asset | No | Asset context for the regime-coverage check (default: SPY as the equity-crisis reference). | |
| n_trials | No | Number of configurations tried before selecting this backtest — drives the deflated-Sharpe correction. Unknown → the claim is flagged UNPROVEN. | |
| frequency | No | Return observations per year (252 = daily bars). | |
| backtest_end | No | Backtest window end (YYYY-MM-DD). | |
| backtest_start | No | Backtest window start (YYYY-MM-DD) — used to detect crisis regimes the window never contained. | |
| annualized_sharpe | No | The claimed annualized Sharpe ratio of the backtest. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |