Scale to a target drawdown
backtest_risk_scalingCalculates the position-size multiplier that scales a backtest’s max drawdown to a target drawdown percentage, returning the multiplier, resulting return, and implied leverage.
Instructions
The position-size multiplier k that turns this run's max drawdown into targetDrawdownPct, and return and implied leverage at k.
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": {
"backtestId": "<backtestId>",
"targetDrawdownPct": "<targetDrawdownPct>"
},
"name": "backtest_risk_scaling"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| backtestId | Yes | ||
| targetDrawdownPct | Yes |