calculate_position_size
Calculate trade position size from risk amount, stop-loss, and optional entry price to control risk before order execution.
Instructions
Calculate optimal position size based on risk parameters.
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": {
"symbol": "<symbol>",
"risk_amount": "<risk_amount>",
"stop_loss": "<stop_loss>"
},
"name": "calculate_position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| method | No | fixed_risk | |
| symbol | Yes | ||
| stop_loss | Yes | ||
| entry_price | No | ||
| risk_amount | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||