ATR Node
Average True Range
Overview
The Average True Range (ATR) is a technical indicator that measures market volatility by calculating the average range between high and low prices over a specified period. Developed by J. Welles Wilder, ATR provides traders with a quantitative measure of how much an asset typically moves, which is essential for position sizing, stop-loss placement, and assessing market conditions.
Unlike directional indicators that show trend direction, ATR is non-directional and only measures volatility magnitude. High ATR values indicate high volatility (large price movements), while low ATR values suggest low volatility (small price movements). This makes ATR invaluable for adjusting trading strategies to current market conditions and managing risk appropriately.
Formula
ATR calculation involves two steps - first calculating True Range, then averaging it:
โข Current High - Current Low
โข |Current High - Previous Close|
โข |Current Low - Previous Close|
Subsequent ATR = [(Previous ATR ร (period - 1)) + Current TR] / period
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
| period | number | 14 | Number of periods for ATR calculation. Standard value is 14 (Wilder's original recommendation). |
| source | Node | Auto | The root data source node. Must include OHLC data. Automatically detected from connected nodes. |
๐ก Tip: While 14 is standard, shorter periods (7-10) make ATR more responsive to recent volatility changes, while longer periods (20-30) provide smoother, more stable readings. Adjust based on your trading timeframe.
Interpreting ATR Values
High ATR: Increased Volatility
Rising ATR indicates increasing volatility and larger price swings. This often occurs during market panics, news events, or trend breakouts. High volatility means wider stops, smaller position sizes, and potentially more profit opportunity but also higher risk.
Low ATR: Decreased Volatility
Falling or low ATR suggests decreasing volatility and smaller price movements. Common in consolidation periods, tight ranges, or low-volume markets. Low volatility allows tighter stops and larger position sizes but may offer limited profit potential.
Rising ATR: Trend Strength
When ATR rises during a trend, it confirms strong momentum and conviction. Traders can be more aggressive with trend-following strategies. Rising ATR at breakout points validates the breakout.
Absolute vs. Relative Values
ATR values are absolute (in price units), not percentages. A $5 ATR means the asset typically moves $5 per period. Compare ATR to recent history rather than across different assets. Look for ATR spikes or drops relative to its own historical range.
Common Use Cases
1. Stop-Loss Placement
Use ATR multiples to set stop-losses that adapt to volatility. Common approach: Stop = Entry ยฑ (2 ร ATR). In high volatility, stops are wider to avoid premature exits. In low volatility, stops are tighter to minimize risk. This volatility-adjusted approach prevents stops from being too tight or too loose.
2. Position Sizing
Calculate position size based on ATR to maintain consistent risk per trade. Formula: Position Size = (Account Risk $) / (ATR ร Multiplier). When ATR is high (volatile), you buy fewer shares. When ATR is low, you can afford more shares while maintaining the same dollar risk. This normalizes risk across different market conditions.
3. Profit Targets
Set realistic profit targets based on current volatility. Target = Entry + (ATR ร Multiplier). Common multipliers: 2-3ร ATR for conservative targets, 4-6ร ATR for aggressive targets. In high volatility, assets can reach larger targets. In low volatility, expect smaller moves and adjust expectations accordingly.
4. Market Environment Assessment
Use ATR to gauge overall market conditions and choose appropriate strategies. High ATR favors trend-following and breakout strategies with room for profits. Low ATR suits mean-reversion and range-trading strategies. Comparing current ATR to historical averages helps identify unusual market conditions and adjust trading approach.
Advantages & Limitations
Advantages
- โขObjective, quantitative measure of volatility
- โขAdapts automatically to changing market conditions
- โขEssential for proper risk management
- โขWorks across all markets and timeframes
- โขSimple to calculate and interpret
- โขCaptures gaps and full price range
Limitations
- โขDoes not indicate price direction (non-directional)
- โขLagging indicator - reacts to past volatility
- โขAbsolute values not comparable across assets
- โขSlow to respond to sudden volatility changes
- โขCannot predict future volatility levels
- โขRequires combining with directional indicators
Tips & Best Practices
๐ก Use ATR for Risk, Not Direction
ATR tells you how much an asset moves, not which direction. Never use ATR alone for entry/exit decisions. Combine it with directional indicators like moving averages, MACD, or trend lines. ATR's purpose is risk management and position sizing, not signal generation.
๐ Compare to Historical ATR
Always view current ATR in context of its recent history. An ATR of 3.0 might be high for one stock and low for another. Look at ATR over the past 6-12 months. Is current ATR near highs (high volatility regime) or lows (low volatility regime)? This context guides strategy selection.
โก Adjust Multipliers for Your Style
ATR multipliers depend on trading style. Day traders might use 1-2ร ATR for stops, swing traders 2-3ร ATR, position traders 3-4ร ATR. Tighter multipliers mean more frequent stops but protect capital. Wider multipliers give trades more room but risk more per trade. Backtest to find your optimal multipliers.
โ ๏ธ Watch for ATR Expansion
Sudden ATR spikes signal major volatility increases. This often precedes large moves or trend changes. When ATR jumps 50-100% above average, be cautious - something significant is happening. Tighten risk management, reduce position sizes, or wait for volatility to normalize before entering new positions.
Example Strategy
Here's an ATR-based position sizing and risk management strategy:
ATR Risk Management System
1Calculate Current ATR
- โConnect Stock Node to ATR node (period: 14)
- โNote current ATR value (e.g., $2.50)
- โCompare to 3-month ATR average for context
2Set Stop-Loss Distance
- โStop Distance: 2 ร ATR = 2 ร $2.50 = $5.00
- โFor long entry at $50: Stop = $50 - $5 = $45
- โFor short entry at $50: Stop = $50 + $5 = $55
- โRisk per share = $5.00
3Calculate Position Size
- โAccount Size: $50,000
- โRisk per Trade: 2% = $1,000
- โPosition Size: $1,000 รท $5.00 = 200 shares
- โIf ATR was higher ($4.00), you'd buy only 125 shares
4Set Profit Target
- โTarget: 3 ร ATR = 3 ร $2.50 = $7.50
- โFor long entry at $50: Target = $50 + $7.50 = $57.50
- โRisk/Reward: $5.00 risk / $7.50 reward = 1:1.5
- โTrail stop by 2ร ATR once in profit
Related Nodes
Bollinger Bands
Uses standard deviation (similar to ATR) to create volatility-based bands.
SuperTrend
Uses ATR to create dynamic trend-following indicator with clear signals.
Parabolic SAR
Another volatility-adaptive indicator for trailing stops and trend following.
ADX
Combine ATR (volatility) with ADX (trend strength) for complete market analysis.