策略回测
backtest_strategyBacktest trading strategies against historical prices and technical indicators (SMA, RSI, MACD, BOLL, MA_CROSS, KDJ) to evaluate performance across stock markets.
Instructions
基于历史价格与技术指标进行简单策略回测(SMA/RSI/MACD/BOLL/MA_CROSS/KDJ)
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": {
"symbol": "<symbol>"
},
"name": "backtest_strategy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | 回测天数 | |
| market | No | 股票市场,仅支持: sh(上证), sz(深证), hk(港股), us(美股), 不支持加密货币 | sh |
| symbol | Yes | 股票代码 | |
| strategy | No | 策略类型: SMA/RSI/MACD/BOLL/MA_CROSS/KDJ | SMA |