Forex Compounding Calculator
calculate_compoundingHow an account grows when the same percentage gain is made every trade, day, week, month or year, with optional deposits, withdrawals and losing periods. Same calculation as the Forex Compounding Calculator page at https://forexdemo.com/forex-compounding-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_compounding"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| flow | No | Amount (or percentage for share) of each deposit or withdrawal. | |
| gain | No | Gain per period in percent. Negative for a loss. Give 2 for 2%. | |
| period | No | How often the gain is made. | month |
| target | No | Optional target balance. | |
| balance | No | Starting balance. | |
| periods | No | Number of periods. | |
| winRate | No | Only for period trade: the share of trades that win. Give 2 for 2%. | |
| currency | No | The currency the trading account is held in. | USD |
| flowType | No | Optional regular money in or out: deposit, withdraw (an amount) or share (a percentage of the profit). | none |
| flowEvery | No | How many periods between deposits or withdrawals. Defaults to about once a month. | |
| lossCount | No | Not for period trade: how many losing periods in each group of lossEvery. | |
| lossEvery | No | Not for period trade: the size of the group, such as 1 loss every 4 months. | |
| lossPercent | No | The percentage lost in each losing period or losing trade. Give 2 for 2%. |