Drawdown recovery calculator
calculate_drawdown_recoveryRead-onlyIdempotent
The gain needed to recover from a drawdown and, optionally, how many losing trades in a row at a fixed risk per trade cause it. Computed with the same function as Clear Tape's free drawdown recovery calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lang | No | Language of the returned text: "en" (default) or "zh" (Simplified Chinese). | en |
| loss | Yes | Drawdown in percent of the account (20 = 20%). Above 0, below 100. | |
| riskPct | No | Optional: risk per trade in percent of the account. Above 0, below 100. |