ATR stop-loss calculator
calculate_atr_stopRead-onlyIdempotent
A volatility (ATR) stop: entry minus (long) or plus (short) a multiple of the average true range. Give atr, or at least five recent daily ranges (high minus low). Computed with the same function as Clear Tape's free atr stop-loss calculator page (linked in the result), not estimated. Returns the inputs, each result with its unit, the formula and the page link. Educational, not investment advice.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atr | No | Average true range in USD (e.g. the 14-day ATR). Give this or ranges. | |
| lang | No | Language of the returned text: "en" (default) or "zh" (Simplified Chinese). | en |
| side | No | Trade direction: "long" (default) or "short". | long |
| entry | Yes | Entry price per share in USD. | |
| ranges | No | Alternative to atr: 5 to 500 recent daily ranges (high minus low) in USD; their average stands in for the ATR. | |
| multiple | Yes | ATR multiple for the stop distance, commonly 1.5 to 3. |