Technical analysis

Average True Range (ATR)

What is it?

The Average True Range (ATR) is a technical analysis indicator developed by J. Welles Wilder Jr. that measures market volatility by decomposing the entire range of price movements into different components. It's designed to show how much an asset's price has moved, on average, over a given period. Unlike other indicators that focus on price direction, ATR focuses solely on volatility. It's particularly useful for setting stop-loss levels, determining position sizes, and understanding the potential risk associated with a trade. The 'true range' itself is the greatest of the following three values: the distance between the current high and the current low; the distance between the previous close and the current high; or the distance between the previous close and the current low. The ATR is then a moving average of these true range values, typically calculated over a 14-period timeframe.

AI trade lab

Average True Range (ATR) Widget

Understand market volatility at a glance and optimize your trading decisions.

Indicator simulator
Step 1 / 4
For each period, find the greatest of: High-Low, |Previous Close-High|, |Previous Close-Low|.
Chart appears after trade starts.
Understanding Average True Range (ATR)

Understanding Average True Range (ATR)

In the dynamic world of financial markets, understanding the magnitude of price fluctuations is as crucial as predicting their direction. The Average True Range (ATR) indicator, pioneered by J. Welles Wilder Jr., serves precisely this purpose. It quantifies market volatility by measuring the average range of price movement over a specified period. Unlike indicators that focus on trend or momentum, ATR's sole domain is volatility, offering traders a vital tool for risk management and strategy refinement. Its ability to adapt to changing market conditions makes it a cornerstone in many trading methodologies.

The Genesis of ATR: J. Welles Wilder Jr.

J. Welles Wilder Jr. introduced the ATR indicator in his seminal 1978 book, 'New Concepts in Technical Trading Systems.' Wilder was a pioneer in developing momentum and volatility indicators, including the Relative Strength Index (RSI), Average Directional Index (ADX), and Parabolic SAR, all designed to capture different facets of market behavior. His focus was on creating objective, quantifiable measures that traders could use to make more informed decisions, moving away from subjective interpretations of price charts. ATR, in particular, was developed to provide a clear measure of the 'noise' or choppiness in a market, helping traders gauge the typical price movement they could expect within a given timeframe.

Defining True Range (TR)

Before understanding the Average True Range, it's essential to define the 'True Range' (TR). This is the foundational element of the ATR calculation. For any given trading period (e.g., a day, an hour), the True Range is the greatest of the following three values: 1. The difference between the current period's high and low (High - Low). 2. The absolute difference between the previous period's closing price and the current period's high (|Previous Close - High|). 3. The absolute difference between the previous period's closing price and the current period's low (|Previous Close - Low|). The inclusion of the previous day's close accounts for potential gaps in price, ensuring that the full extent of price movement, including those that occur between one session's close and the next session's open, is captured. This makes TR a more comprehensive measure of volatility than a simple high-low range.

Calculating the Average True Range (ATR)

Calculating the Average True Range (ATR)

Once the True Range (TR) for each period is calculated, the Average True Range (ATR) is derived by taking a moving average of these TR values. The most common lookback period is 14. There are two primary methods for calculating the moving average: * **Simple Moving Average (SMA):** The first ATR value is typically calculated as the simple average of the first 14 TR values. Subsequent calculations would involve dropping the oldest TR value and adding the newest one, then recalculating the average. * **Wilder's Smoothing Method (Exponential Moving Average-like):** Wilder's original method, which is more commonly used and implemented in most trading platforms, involves a smoothing technique that gives more weight to recent data. The formula is as follows: ATR = [(Previous ATR * (n - 1)) + Current TR] / n Where 'n' is the lookback period (e.g., 14). This formula means that the current ATR is calculated based on the previous ATR value, making it a form of smoothed moving average. This approach helps to reduce the choppiness of the indicator and provide a more stable representation of volatility over time.

  • **Step 1: Calculate True Range (TR) for each period.**
  • **Step 2: Calculate the initial ATR.** For the first ATR value, sum the TR values for the first 'n' periods (e.g., 14) and divide by 'n'.
  • **Step 3: Calculate subsequent ATR values.** Use Wilder's smoothing formula: ATR = [(Previous ATR * (n - 1)) + Current TR] / n.

Interpreting ATR Signals

The ATR itself is expressed in the same price units as the underlying asset. For example, if a stock is trading at $50, and the 14-period ATR is $2, it means that, on average, the stock's price has moved $2 per period over the last 14 periods. The interpretation of ATR focuses on its trend and absolute values: * **Rising ATR:** An increasing ATR value suggests that market volatility is on the rise. This could indicate increasing uncertainty, the potential for larger price swings, or the strengthening of a prevailing trend. Traders might interpret this as a signal to widen their protective stops or reduce their position size to maintain the same risk per trade. * **Falling ATR:** A decreasing ATR value indicates that market volatility is subsiding. This often occurs during periods of consolidation, sideways trading, or when a trend is losing momentum. Traders might consider tightening their stops or looking for trading opportunities in less volatile conditions. * **High ATR:** A high absolute ATR value signifies a volatile market environment where significant price movements are common. This might be an opportune time for strategies that profit from large swings, but it also demands robust risk management. * **Low ATR:** A low absolute ATR value indicates a calm or trending market with smaller price fluctuations. This can be suitable for strategies that require less volatility, such as trend-following with tighter stops, but it could also signal a market nearing a period of potential expansion in volatility.

"ATR is not a directional indicator. It simply tells you how much the market is moving, not where it is going."
Practical Applications of ATR in Trading

Practical Applications of ATR in Trading

The true power of ATR lies in its practical application. While it doesn't give buy or sell signals directly, it enhances trading strategies by providing crucial context about market behavior. Its primary uses revolve around risk management and strategy optimization.

1. Setting Stop-Loss Orders

One of the most common and effective uses of ATR is in determining the placement of stop-loss orders. Instead of using a fixed dollar amount or percentage, traders can set stops based on a multiple of the ATR. For example, a trader might place a stop-loss 2 or 3 times the ATR below their entry price for a long position, or above the entry for a short position. This approach automatically adjusts the stop distance to current volatility levels. In a high-volatility environment (high ATR), this wider stop allows the trade room to breathe and reduces the chance of being stopped out by normal market 'noise.' Conversely, in a low-volatility environment (low ATR), a tighter stop is used, limiting potential losses and capital exposure.

Stop-Loss Placement Examples (Long Position)СтатусОписание
Entry Price$100The price at which the trade was initiated.
14-Period ATR$2.50Current average true range.
Stop-Loss Multiple2x ATRMultiplier chosen by the trader.
Stop-Loss Price$95.00Calculated as Entry Price - (ATR * Stop-Loss Multiple) = $100 - ($2.50 * 2) = $95.00

2. Position Sizing

2. Position Sizing

ATR is instrumental in robust position sizing, a critical component of risk management. A fundamental trading principle is to risk only a small, fixed percentage of your trading capital on any single trade (e.g., 1% or 2%). To implement this, traders need to determine how many units of an asset to buy or sell. ATR helps calculate this precisely. If a trader decides to risk $100 on a trade (which is 1% of their $10,000 account) and places their stop-loss 2 * ATR away from their entry, they can calculate the number of shares to trade. If the ATR indicates a $2.50 stop distance, the maximum loss per share is $2.50. Therefore, the number of shares to trade would be $100 (max risk) / $2.50 (risk per share) = 40 shares. This ensures that regardless of the asset's volatility, the maximum potential loss on the trade remains consistent relative to the trader's capital.

3. Identifying Volatility Changes and Potential Breakouts

While ATR does not predict direction, significant changes in its value can signal important market shifts. A period of consistently low ATR often precedes a significant price move. When volatility is compressed, energy builds up, and a subsequent increase in ATR can confirm a breakout from a consolidation range or the start of a new trend. Traders might look for a sharp rise in ATR following a period of quiet trading as confirmation of increasing momentum. Conversely, a declining ATR during a strong trend might suggest that the trend is losing steam and could be nearing exhaustion or a reversal.

4. Evaluating Market Conditions and Asset Comparison

Traders can use ATR to gauge the overall volatility of different markets or assets. Comparing the ATR values of various stocks, forex pairs, or commodities can help identify which instruments are currently experiencing higher or lower price action. This information can guide trading strategy selection. For instance, a trader might opt for a trend-following strategy in an asset with a rising ATR and a tight stop, while choosing a mean-reversion strategy in an asset with a stable or declining ATR and wider profit targets.

5. Enhancing Other Indicators

5. Enhancing Other Indicators

ATR can be used as a confirmation tool alongside other technical indicators. For example, if a moving average crossover generates a buy signal, a trader might check the ATR. If the ATR is rising concurrently, it might suggest stronger momentum behind the potential trend, increasing confidence in the signal. If the ATR is falling, the signal might be viewed with more skepticism, indicating potential weakness.

Choosing the Right Lookback Period

The standard lookback period for ATR is 14. However, traders can adjust this period to suit their trading style and the market conditions they are analyzing: * **Shorter periods (e.g., 5 or 7):** Make the ATR more sensitive to recent price changes. This results in a more volatile indicator that reacts quickly to changes in volatility. It's suitable for shorter-term trading strategies but can lead to more false signals. * **Longer periods (e.g., 20 or 50):** Make the ATR smoother and less reactive to short-term fluctuations. This provides a more stable measure of long-term volatility but may lag behind significant changes. The choice of period should be tested and optimized based on the specific asset, timeframe, and trading strategy. For most general purposes, the default 14-period ATR is a good starting point.

Limitations of ATR

Despite its utility, ATR has limitations that traders must be aware of: * **No Directional Insight:** ATR solely measures volatility and provides no information about the direction of price movement. A high ATR could accompany an uptrend, a downtrend, or a volatile sideways market. * **Lagging Nature:** Like most indicators based on historical price data, ATR is a lagging indicator. It reflects past volatility and may not perfectly predict future volatility, especially in rapidly changing market conditions. * **Sensitivity to Gaps:** The calculation of True Range, particularly the comparison with the previous close, can make ATR sensitive to overnight or weekend price gaps. A large gap can create an unusually high TR value for that period, potentially skewing the average. * **Subjectivity in Interpretation:** While the calculation is objective, interpreting ATR signals often requires context and subjective judgment, especially when deciding on multiples for stops or position sizes.

Conclusion: ATR as a Volatility Compass

The Average True Range (ATR) indicator is an indispensable tool for any trader focused on risk management and understanding market dynamics. It provides a clear, quantitative measure of volatility, enabling traders to make informed decisions about stop-loss placement, position sizing, and overall risk exposure. By adapting to the inherent fluctuations of the market, ATR helps traders navigate both calm seas and stormy weather with greater confidence. While it should not be used in isolation, its integration into a comprehensive trading strategy can significantly enhance a trader's ability to protect capital and potentially capture opportunities arising from changing market conditions. ATR acts as a crucial 'volatility compass,' guiding traders through the unpredictable landscape of financial markets.

How AI uses Average True Range (ATR)

The Average True Range (ATR) is a versatile indicator used by traders and analysts for various purposes: 1. **Setting Stop-Loss Orders:** ATR is widely used to set trailing stop-loss levels. Since ATR measures volatility, it helps traders adjust their stop-loss distances based on current market conditions. For example, a trader might set a stop-loss a certain multiple of the ATR away from the entry price. In a highly volatile market (high ATR), the stop-loss would be placed further away to avoid being prematurely stopped out by normal price fluctuations. Conversely, in a less volatile market (low ATR), the stop-loss would be closer. 2. **Position Sizing:** ATR can inform position sizing strategies. Traders can use ATR to determine how much capital to allocate to a trade based on the perceived risk. A common approach is to risk a fixed percentage of the trading capital per trade. By using ATR, a trader can adjust the number of shares or contracts to trade so that if the stop-loss is hit, the loss will be a predetermined percentage of capital. A larger ATR suggests a wider stop-loss, which would necessitate a smaller position size to maintain the same risk percentage, and vice versa. 3. **Identifying Breakouts and Trend Strength:** While ATR doesn't predict direction, a significant increase in ATR can signal an increase in volatility, which often accompanies strong breakouts or the initiation of a new trend. A sudden spike in ATR might indicate that the market is becoming more active and that a significant price move could be underway. Conversely, a declining ATR suggests that volatility is decreasing, which can precede periods of consolidation or a potential loss of momentum in an existing trend. 4. **Volatility-Based Trading Strategies:** Some trading strategies are built entirely around ATR. For instance, traders might look for situations where ATR is extremely low, anticipating a period of increased volatility and a potential breakout. They might also use ATR to confirm the strength of a trend – a trending market with a consistently rising ATR is considered stronger than a trend with a declining ATR. 5. **Evaluating Market Conditions:** ATR provides a quick snapshot of overall market conditions. Traders can compare the ATR of different assets or different timeframes to gauge relative volatility. A high ATR might indicate a good time to enter trades with wider stops, while a low ATR might suggest a more cautious approach or waiting for volatility to pick up. **Calculation and Interpretation:** The calculation involves three main steps: * **Calculate True Range (TR):** For each trading period, the True Range is the greatest of the following: * Current High minus Current Low (High - Low) * Absolute value of (Previous Close minus Current High) (|Previous Close - High|) * Absolute value of (Previous Close minus Current Low) (|Previous Close - Low|) * **Calculate Average True Range (ATR):** The ATR is typically a 14-period moving average of the True Range. The first ATR value is usually a simple average of the first 14 TR values. Subsequent ATR values are often calculated using a smoothed moving average formula to give more weight to recent data: ATR = [(Previous ATR * (n - 1)) + Current TR] / n Where 'n' is the lookback period (e.g., 14). **Interpretation:** * **Rising ATR:** Indicates increasing volatility. This can suggest a stronger trend, a potential breakout, or increased risk. Traders might widen their stops or reduce position size. * **Falling ATR:** Indicates decreasing volatility. This can suggest a weakening trend, consolidation, or reduced risk. Traders might tighten their stops or look for opportunities to profit from range-bound markets.

Pros

  • Measures volatility objectively, providing insights into market risk.
  • Helps in setting appropriate stop-loss levels, reducing the risk of premature exit from trades.
  • Useful for position sizing, allowing traders to manage risk effectively according to market conditions.
  • Applicable across various asset classes (stocks, forex, commodities, crypto) and timeframes.
  • Can be used in conjunction with other technical indicators to confirm signals or gauge momentum.
  • Provides a quantifiable measure of market 'noise' or choppiness.
  • Simple to understand and implement once the calculation is grasped.
  • Helps traders avoid overtrading during periods of excessive volatility or under-trading during quiet periods.
  • Can be adapted for different trading styles, from scalping to long-term investing.
  • Useful for identifying potential trend reversals or the start of new, strong trends when volatility changes significantly.

Cons

  • Does not provide directional information; it only measures volatility.
  • Can be misleading in highly manipulated markets or during unexpected, sharp news-driven spikes.
  • The choice of the lookback period (e.g., 14) can significantly affect the indicator's sensitivity.
  • Like all lagging indicators, it's based on historical data and may not accurately reflect future volatility.
  • Requires careful interpretation in conjunction with price action and other indicators.
  • A rising ATR doesn't necessarily mean a trade setup is good; it just means there's more movement.
  • Can generate false signals if not used within a broader trading strategy.
  • Less effective in very low-volatility environments where price action is extremely tight.
  • The calculation of True Range itself can be sensitive to overnight gaps.
  • Requires understanding of its underlying principles to be used effectively beyond simple stop-loss placement.

Effectiveness reviews

Trader_Pro

ATR is an absolute essential for any serious trader. I primarily use it for stop-loss placement. It takes the guesswork out of how far to set my stops, preventing me from getting shaken out by normal market noise. Highly recommended!

BeginnerTrader

I'm still learning how to use ATR. It tells me about volatility, which is useful, but I'm not sure how to best combine it with my entry signals. The calculation seems straightforward, but practical application is a bit trickier than I thought.

VolatilityExplorer

For strategies focused on volatility, ATR is king. I use it to identify potential breakout candidates by looking for periods of low ATR followed by a spike. It's a great tool for understanding the 'energy' of the market.

RiskManagerX

ATR is critical for my risk management. I use it to dynamically adjust my position sizes. Knowing the average volatility helps me ensure that a single losing trade, even with a wider stop dictated by ATR, doesn't cripple my account. A must-have.

Share this indicator:
Alexey Ivanov — Founder
Author

Alexey Ivanov — Founder

Founder

Trader with 7 years of experience and founder of Crypto AI School. From blown accounts to managing > $500k. Trading is math, not magic. I trained this AI on my strategies and 10,000+ chart hours to save beginners from costly mistakes.

Get signals powered by Average True Range (ATR)

Our AI analyzes this and 20+ indicators at once to deliver signals with up to 82% win rate.

Get signal access