calculate_max_drawdown
Calculate the maximum drawdown from a series of prices to quantify the largest decline from peak to trough, helping assess downside risk.
Instructions
Calculate maximum drawdown from prices.
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": {
"prices": "<prices>"
},
"name": "calculate_max_drawdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prices | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |