Risk Reward Calculator
calculate_risk_rewardRisk-reward ratio of a trade from its entry, stop-loss and take-profit, the win rate at which trades of that shape break even, and the likely result over many trades. Same calculation as the Risk Reward Calculator page at https://forexdemo.com/risk-reward-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_risk_reward"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | prices: give entry, stop and target prices. distance: give stopDistance and targetDistance. | prices |
| pair | No | Pair, used for pip size in prices mode. EURUSD and eur-usd are accepted too. | EUR/USD |
| stop | No | Stop-loss price (mode prices). | |
| entry | No | Entry price (mode prices). Leave all three prices out to use the example trade. | |
| spread | No | Optional spread, in pips (prices mode) or the distance unit. | |
| target | No | Take-profit price (mode prices). | |
| trades | No | Number of trades for the result over many trades. | |
| winRate | No | Win rate in percent, for the result over many trades. Give 2 for 2%. | |
| currency | No | The currency the trading account is held in. | USD |
| riskAmount | No | Optional amount risked per trade, in the account currency. | |
| distanceUnit | No | Unit of the distances (mode distance). | pips |
| stopDistance | No | Stop-loss distance (mode distance). | |
| targetDistance | No | Take-profit distance (mode distance). |