Position size & ATR stop ($0.002)
rugprobe_position_sizeCalculate position size and stop-loss from account size, risk percentage, and ATR or price bars. Returns Wilder ATR, stop price, units, and position value.
Instructions
Position size and stop-loss from account risk: give price bars (high/low/close, oldest first) or an ATR plus entry, the account size and risk %. Returns Wilder ATR, stop price, units and position value. Math only, not financial advice. Costs $0.002 USDC.
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": {
"accountSize": "<accountSize>",
"riskPct": "<riskPct>"
},
"name": "rugprobe_position_size"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atr | No | ATR, if you already have it (then also send entry) | |
| bars | No | Price bars, oldest first | |
| side | No | ||
| entry | No | Entry price (default: last close) | |
| period | No | ATR period (default 14) | |
| riskPct | Yes | Percent of the account to risk, e.g. 1 | |
| multiplier | No | Stop distance in ATRs (default 2) | |
| accountSize | Yes | Account size |