canli-mcp / Backtest validation
Backtest a rule over a parameter grid, validated
Backtest a rule on your prices over a whole parameter grid, then validate the best with the count of variants actually run: deflated Sharpe, overfitting probability, minimum track record, vs buy and hold, after costs. A backtest, deflated or not, is not a forecast and not advice.
The tool is backtest_strategy in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-validation-mcp, which canli-mcp includes, and it is also its own server.
Arguments
| Argument | Required | Type |
|---|---|---|
family | yes | buy_and_hold|sma_cross|momentum|mean_reversion|breakout |
grid | no | object |
prices | no | number[] |
prices_file | no | string |
prices_column | no | string|integer |
dates | no | string[] |
periods_per_year | no | number |
cost_bps | no | number |
allow_short | no | boolean |
How a model reaches it
Ask in plain words. The model finds backtest_strategy with canli-mcp's find_tool, reads its arguments with describe_tool if it needs to, and runs it with run_tool. The call has this shape, with your values in place of the angle brackets:
{
"name": "backtest_strategy",
"arguments": {
"family": "<buy_and_hold|sma_cross|momentum|mean_reversion|breakout>"
}
}More
Nothing here is investment advice.