最大回撤
analysis_drawdownAssess historical risk by calculating maximum drawdown and peak/trough positions from Binance K-line closing prices for any symbol and interval.
Instructions
直连版:拉取 K 线以收盘价为净值序列,计算标的最大回撤(负数)与峰谷位置(非账户绩效)。窗口越大越接近历史极值,建议 1d×365 起评估最大可能回撤。
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 |