risk_drawdown
Compute and decompose drawdown metrics from an equity curve, including maximum drawdown, duration, recovery time, and current drawdown with start/end indices.
Instructions
Drawdown decomposition with underwater curve.
Use when analyzing drawdown characteristics of a return series. Provide an array of returns. Returns: max drawdown, drawdown duration, recovery time, current drawdown, and all drawdown periods with start/end indices.
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": {
"equity_curve": "<equity_curve>"
},
"name": "risk_drawdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| equity_curve | Yes | Array of portfolio equity values over time |