Average True Range
Introduction
The Average True Range (ATR) is a volatility indicator developed by J. Welles Wilder Jr. in his book, New Concepts in Technical Trading Systems. It measures market volatility by decomposing the entire range of an asset for that period. Unlike other indicators that focus solely on price movements, ATR considers gaps in the price, making it a valuable tool for traders assessing potential trade opportunities and risk.
Calculation of ATR
The ATR is calculated using the following steps:
Calculate the True Range (TR):
- The True Range is defined as the greatest of the following:
- Current High - Current Low
- Current High - Previous Close (absolute value)
- Current Low - Previous Close (absolute value)
- The True Range is defined as the greatest of the following:
Calculate the ATR:
- The ATR is typically calculated as a moving average (usually a 14-period) of the True Range.
Formulas
- True Range (TR):
- Average True Range (ATR):
Where:
- SMA represents the Simple Moving Average.
- ( n ) is the number of periods typically set to 14.
Example Calculation
Let’s assume we have the following daily price data for a stock over 5 days:
Day | High | Low | Close |
---|---|---|---|
1 | 30 | 25 | 28 |
2 | 32 | 29 | 31 |
3 | 34 | 30 | 33 |
4 | 33 | 31 | 32 |
5 | 36 | 32 | 35 |
Step 1: Calculate True Range (TR)
Day 2:
- Current High = 32
- Current Low = 29
- Previous Close = 28
Day 3:
- Current High = 34
- Current Low = 30
- Previous Close = 31
Day 4:
- Current High = 33
- Current Low = 31
- Previous Close = 33
Day 5:
- Current High = 36
- Current Low = 32
- Previous Close = 32
Day | High | Low | Close | True Range (TR) |
---|---|---|---|---|
1 | 30 | 25 | 28 | N/A |
2 | 32 | 29 | 31 | 4 |
3 | 34 | 30 | 33 | 4 |
4 | 33 | 31 | 32 | 2 |
5 | 36 | 32 | 35 | 4 |
Step 2: Calculate the ATR
To calculate the ATR over 3 days, we would take the average of the TR values from Day 2 to Day 5.
Python Code
Interpretation of ATR
- Higher ATR: Indicates increased market volatility, suggesting that a security may experience larger price movements.
- Lower ATR: Indicates lower volatility, suggesting a more stable market environment with smaller price fluctuations.
Trading Strategy
Traders often use ATR to set stop-loss levels. A common approach is to set a stop-loss at a multiple of the ATR (e.g., 1.5 or 2 times the ATR) to allow for volatility without being prematurely stopped out.
Analogy
Consider the Average True Range as a measure of excitement in a game. If there are a lot of unexpected turns and intense moments (high volatility), the excitement level (ATR) is high. Conversely, if the game is predictable and calm, the excitement level remains low. Just like you would anticipate a thrilling experience with high excitement, traders can anticipate more volatile price movements with a higher ATR.
Conclusion
The Average True Range (ATR) is a vital tool for traders that provides insights into market volatility. By understanding and applying ATR, traders can make more informed decisions regarding their risk management and trading strategies.
References
- Wilder, J. W. (1978). New Concepts in Technical Trading Systems. Trend Research.
- Investopedia: Average True Range (ATR)
- TradingView: Average True Range