Forex Slippage Calculator
calculate_slippageWhat slippage (the difference between the price asked for and the price filled) costs per trade, per month and over a period. Same calculation as the Forex Slippage Calculator page at https://forexdemo.com/forex-slippage-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": {
"entry": "<entry>",
"exit": "<exit>"
},
"name": "calculate_slippage"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| exit | Yes | Slippage on exit per trade, in slippageUnit. | |
| pair | No | Currency pair, such as EUR/USD. EURUSD and eur-usd are accepted too. | EUR/USD |
| rate | No | Only needed when the account currency is not in the pair: the price of the market pair that converts it (for example the GBP/USD price for EUR/GBP in a USD account). Required when currency is not quote. | |
| size | No | Average size per trade, in sizeUnit. | |
| entry | Yes | Slippage on entry per trade, in slippageUnit. | |
| months | No | Number of months. | |
| trades | No | Completed trades per month. | |
| currency | No | Currency to show costs in: quote (the pair's second currency) or another currency. | quote |
| sizeUnit | No | lots (100,000 units each) or units. | lots |
| stopPips | No | Optional stop distance in pips, to compare the slippage with the risk. | |
| precision | No | Only for points: fractional when prices have 5 decimals (3 for yen pairs), whole when they have 4 (2 for yen pairs). | fractional |
| slippageUnit | No | pips or points. | pips |
| averageWinPips | No | Optional average win in pips, to compare the slippage with the average win. |