Forex Drawdown Calculator
calculate_drawdownWhat a run of losing trades does to an account, the gain needed to win it back, how likely such a run is, and the chance of reaching a drawdown limit. Same calculation as the Forex Drawdown Calculator page at https://forexdemo.com/forex-drawdown-calculator.html. Every input is optional unless marked required; left-out inputs use the page's defaults, which are listed in the reply.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "calculate_drawdown"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | Risk per trade in percent. Give 2 for 2%. | |
| limit | No | Drawdown limit in percent, such as a prop firm's. Give 2 for 2%. | |
| losses | No | Losing trades in a row. | |
| reward | No | Average win as a multiple of the risk, such as 1.5. | |
| trades | No | Number of trades to look ahead. | |
| balance | No | Account balance. | |
| winRate | No | Win rate in percent, for the chance of a losing run. Give 2 for 2%. | |
| currency | No | The currency the trading account is held in. | USD |
| riskBase | No | current: risk is a share of the current balance. start: of the starting balance. | current |
| limitType | No | Where the limit is measured from: peak (highest balance), start (starting balance) or lock (trailing until it locks at the start). | peak |