backtest_portfolio
Backtest a trading strategy across multiple stock symbols to evaluate portfolio performance with configurable parameters.
Instructions
Backtest a strategy across multiple symbols (portfolio).
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": {
"symbols": "<symbols>"
},
"name": "backtest_portfolio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| symbols | Yes | List of stock symbols | |
| strategy | No | Strategy type to apply | sma_cross |
| start_date | No | Start date (YYYY-MM-DD) | |
| end_date | No | End date (YYYY-MM-DD) | |
| initial_capital | No | Starting capital | |
| position_size | No | Position size per symbol (0.1 = 10%) | |
| fast_period | No | ||
| slow_period | No | ||
| period | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||