最大回撤
analysis_drawdownCompute maximum drawdown and peak/trough positions from close-price data to assess downside risk. Use longer windows like daily over 365 periods to approximate historical extremes.
Instructions
直连版:拉取 K 线以收盘价为净值序列,计算标的最大回撤(负数)与峰谷位置(非账户绩效)。窗口越大越接近历史极值,建议 1d×365 起评估最大可能回撤。
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>",
"interval": "<interval>"
},
"name": "analysis_drawdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| symbol | Yes | ||
| interval | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| peak | Yes | ||
| trough | Yes | ||
| maxDrawdown | Yes | ||
| sampleCount | Yes |