VOLATILITY · T09
ATR calculator & volatility stop
Calculate gap-aware True Range and ATR from ordered OHLC bars, then turn volatility into a tick-aligned long or short stop.Parsed and calculated locally in this browser. Pasted bars are not uploaded.T09 / WILDER
Volatility-to-stop decision view
Calculation trace
| Source line | True Range | ATR |
|---|---|---|
| 2 | 2 | Awaiting seed |
| 3 | 2 | Awaiting seed |
| 4 | 2 | 2 |
| 5 | 2 | 2 |
| 6 | 2 | 2 |
09 / DECISION
What this stop decides
Supplying an ATR hides how gaps and smoothing affect the value. This trace derives volatility from the bars and produces a stop that can feed the central position-size calculator.Scope and limitations
- Bars must be pasted oldest to newest; timestamps are not parsed or reordered.
- The parser accepts a bounded unquoted high/low/close format, not arbitrary broker CSV.
- You must verify timeframe, session boundaries, corporate actions, and price adjustments.
- ATR measures past range, not direction, future volatility, or execution quality.
Method and sources
The engine uses the documented True Range definition and Wilder or simple moving-average smoothing. Stop execution remains subject to market conditions.
- Average True RangeFidelity
Documents the gap-aware True Range components and ATR interpretation.
- Stop Orders: Factors to Consider During Volatile MarketsFINRA
Explains why stop execution can differ from the selected trigger price.