Win Rate Calculator
calculate_win_rateWin rate from the number of winning and losing trades, how sure that win rate is, and, with the average win and loss, the break-even win rate, profit factor and expectancy. Same calculation as the Win Rate Calculator page at https://forexdemo.com/win-rate-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": {
"wins": "<wins>",
"losses": "<losses>"
},
"name": "calculate_win_rate"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | No | Optional cost per trade (spread and commission), in money. | |
| flat | No | Optional number of break-even trades. | |
| wins | Yes | Number of winning trades. | |
| losses | Yes | Number of losing trades. | |
| target | No | Optional win rate to reach, in percent. Give 2 for 2%. | |
| averageWin | No | Optional average win, in money. | |
| averageLoss | No | Optional average loss, in money, without a minus sign. |