pairs_backtest
Backtest pairs trading strategies using historical data to evaluate performance and optimize entry/exit parameters for mean reversion approaches.
Instructions
Backtest pairs trading strategies
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pair": "<pair>",
"backtest_result_1": "<backtest_result_1>",
"backtest_result_2": "<backtest_result_2>"
},
"name": "pairs_backtest"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pair | Yes | ||
| backtest_result_1 | Yes | ||
| backtest_result_2 | Yes | ||
| strategy | No | mean_reversion | |
| lookback_period | No | ||
| entry_threshold | No | ||
| exit_threshold | No | ||
| position_size | No | ||
| max_holding_days | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||