calculate_position_size
Determine the position size for a trade such that the stop-loss loss equals a given risk percentage of capital.
Instructions
Quantity so the stop-loss loss equals risk_percent of capital, capped by MAX_POSITION_SIZE_PERCENT.
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": {
"capital": "<capital>",
"risk_percent": "<risk_percent>",
"entry_price": "<entry_price>",
"stop_loss": "<stop_loss>"
},
"name": "calculate_position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| capital | Yes | ||
| risk_percent | Yes | ||
| entry_price | Yes | ||
| stop_loss | Yes |