Position size calculator
hopi_position_size_calculatorWork out how large a position to take so that hitting the stop-loss loses only a chosen percentage of the account. Enter account size, risk percentage, entry price and stop-loss price. Returns units to buy, position value, amount at risk and stop distance. Figures are treated as GBP. Source: https://hopi.co.uk/position-size-calculator/
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": {
"account": "<account>",
"risk": "<risk>",
"entry": "<entry>",
"stop": "<stop>"
},
"name": "hopi_position_size_calculator"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| risk | Yes | Percentage of the account to risk on this trade (above 0, up to 100) | |
| stop | Yes | Stop-loss price per unit | |
| entry | Yes | Entry price per unit | |
| account | Yes | Total account size |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| units | No | ||
| summary | Yes | ||
| direction | No | ||
| source_url | Yes | The tool's page on hopi.co.uk (cite or open to check the figure) | |
| unitsString | No | ||
| amountAtRisk | No | ||
| positionValue | No | ||
| amountAtRiskString | No | ||
| positionValueString | No | ||
| stopDistancePercent | No |