canli-mcp / Quant finance
Backtest pairs trading
Backtest a pairs trade on two price series: rolling hedge ratio, z-score of the residual spread, market-neutral entries and exits, with costs.
The tool is backtest_pairs_trading in canli-mcp 0.22.0, free and MIT-licensed, with no account and no API key. It comes from canli-quant-mcp, which canli-mcp includes, and it is also its own server.
Arguments
| Argument | Required | Type |
|---|---|---|
prices | yes | any[][] |
window | no | integer |
entry_z | no | number |
exit_z | no | number |
curve | no | boolean |
dates | no | string[] |
cost_bps | no | number |
periods_per_year | no | number |
risk_free | no | number |
long_only | no | boolean |
How a model reaches it
Ask in plain words. The model finds backtest_pairs_trading 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_pairs_trading",
"arguments": {
"prices": "<any[][]>"
}
}Words that find it
Besides its name, title and description, find_tool matches a question to backtest_pairs_trading on these words: pairs, trading, statistical, arbitrage, spread, cointegration, hedge, ratio, market, neutral, backtest.
More
Nothing here is investment advice.