Account Survival Calculator
calculate_account_survivalThe chance that a trading account loses a set share of its money (risk of ruin) within a number of trades, from the win rate, the average win and the risk per trade. Same calculation as the Account Survival Calculator page at https://forexdemo.com/account-survival-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
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": {
"winRate": "<winRate>",
"reward": "<reward>"
},
"name": "calculate_account_survival"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | No | Risk per trade in percent. Give 2 for 2%. | |
| ruin | No | Ruin level: the share of the account lost that counts as ruin. Give 2 for 2%. | |
| reward | Yes | Average win as a multiple of the risk, such as 1.5. | |
| target | No | Optional profit target in percent. Give 2 for 2%. | |
| trades | No | Number of trades to look ahead. | |
| winRate | Yes | Win rate in percent. Give 2 for 2%. | |
| riskBase | No | current: risk is a share of the current balance. start: of the starting balance. | current |
| ruinType | No | Where the ruin level is measured from: start or peak. | start |