Size a position from risk
position_sizeCalculate position size from account equity, risk percentage, and stop distance, rejecting inputs that over-leverage or use a zero stop.
Instructions
Turns account equity, risk tolerance and a stop distance into a position size. Refuses inputs that would risk more than the account or imply a zero stop.
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": {
"equity": "<equity>",
"riskPercent": "<riskPercent>",
"entry": "<entry>",
"stop": "<stop>"
},
"name": "position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stop | Yes | ||
| entry | Yes | ||
| equity | Yes | ||
| riskPercent | Yes | ||
| contractSize | No | Units per contract. Defaults to 1. |