ATR Stop + Position Size ($0.005)
atr_stopCalculates Wilder ATR, an ATR-multiple stop price, and position size from account risk percentage using OHLCV bars, entry, side, and equity for risk-based trade planning.
Instructions
Price: $0.005 USDC per call on Base, paid automatically via x402 from X402_PRIVATE_KEY. Wilder ATR, ATR-multiple stop price and position size from account risk %. Failed calls (4xx/5xx) are not charged. Informational only, not investment advice.
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": {
"bars": "<bars>"
},
"name": "atr_stop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | OHLCV bars, oldest first: {t (ISO-8601 or epoch s/ms), o, h, l, c, v} or [t,o,h,l,c,v]. Max 5000. | |
| side | No | ||
| entry | No | Entry price (default last close) | |
| period | No | ATR period (default 14) | |
| riskPct | No | % of account risked (default 1) | |
| multiplier | No | Stop = ATR × multiplier (default 2) | |
| pointValue | No | $ per point per contract (ES = 50) | |
| accountSize | No | Account equity |