Trading Indicator

Average True Range Indicator: Volatility-Based Trading & Risk Management

Learn how ATR volatility rules can be translated into no-code automated trading strategies with Tradeworks.

Average True Range showing volatility levels for dynamic position sizing in algorithmic trading

Understanding Average True Range (ATR)

Average True Range (ATR) is a volatility indicator that measures the degree of price movement over a specified period. Unlike directional indicators like Moving Averages, ATR focuses purely on volatility magnitude-how much price moves, not which direction. This makes ATR useful to test for risk management, position sizing, and stop-placement rules in automated trading systems.

How ATR Works in Automated Trading

  • Volatility Measurement: ATR calculates the average true range over a specified period (typically 14)
  • True Range Calculation: Takes the greatest of: (High - Low), |High - Previous Close|, |Low - Previous Close|
  • Dynamic Sizing: Higher ATR = higher volatility = smaller position sizes or wider stops
  • Market Condition Identification: Low ATR indicates consolidation, high ATR indicates trending/volatile markets

Average True Range (ATR) is an indicator measuring the market volatility. The value of ATR is the smoothed moving average of the trading range (high-close) over the selected number of periods. The higher is the value of the indicator, the higher is the current volatility of the given instrument. ATR does not predict the direction of the price movement.

ATR Formula & Calculation

The average true range formula starts with True Range for each bar, then averages those values over the selected ATR period. This average true range calculation helps traders understand how the ATR value changes when recent price ranges expand or contract.

  1. True Range (TR): For each period, True Range is the greatest of:
    • Current High minus Current Low
    • |Current High minus Previous Close|
    • |Current Low minus Previous Close|
  2. ATR Value: The simple moving average of True Range over N periods (typically 14). ATR(14) = average of the last 14 True Range values. Some traders search for this as an ATR range indicator, but the standard term is Average True Range (ATR).

Understanding the formula helps when testing strategies in Tradeworks: a higher ATR means the market is moving more per bar, so stops and targets should be wider. In true range trading, ATR helps translate recent volatility into testable stop-distance and filter rules rather than directional predictions.

Average True Range Strategy Rules

An Average True Range strategy should use ATR as a volatility rule rather than a direction signal. In Tradeworks, ATR can define whether volatility is high enough for a setup, how wide exits should be, or how a risk rule adapts to current market movement.

  • What it measures: average price range over the selected period.
  • Entry condition: test ATR as a volatility filter before another indicator opens a trade.
  • Exit condition: define Stop Loss Exit Signal and Take Profit Exit Signal levels using ATR multiples.
  • Risk rule: compare fixed exits and ATR-based exits in backtesting before choosing a live setup.

Strategy 1: ATR Stop Loss Strategy for Volatility Trading

ATR Dynamic Stop Loss strategy showing stops placed at ATR multiples from entry price

The ATR Dynamic Stop Loss strategy uses current market volatility to adjust stop distances, placing wider stops during high volatility periods and tighter stops during low volatility, so stop-distance rules can be tested against current volatility.

Setup in Tradeworks:

  1. Add Average True Range (ATR) indicator to your strategy
  2. Set parameters: Period = 14 (standard)
  3. Configure stop loss calculation:
    • Stop Loss Exit Signal (Longs): Set condition to 'Strategy symbol BID price is less than (Previous bar close minus (ATR × Multiplier))' where Multiplier = 1.5-2.5
    • Stop Loss Exit Signal (Shorts): Set condition to 'Strategy symbol ASK price is greater than (Previous bar close plus (ATR × Multiplier))' where Multiplier = 1.5-2.5

Trade Management:

  • Stop Loss Exit Signal: Dynamic based on current ATR (adjusts as volatility changes)
    • For longs: Set condition to 'Strategy symbol BID price is less than (Previous bar close minus (ATR × Multiplier))'
    • For shorts: Set condition to 'Strategy symbol ASK price is greater than (Previous bar close plus (ATR × Multiplier))'
  • Take Profit Exit Signal: Can be tested as a fixed ATR multiple, such as 2× ATR from the reference close.
    • For longs: Set condition to 'Strategy symbol BID price is greater than (Previous bar close plus (ATR × 2))' (1:2 risk:reward)
    • For shorts: Set condition to 'Strategy symbol ASK price is less than (Previous bar close minus (ATR × 2))'
  • Testing note: Compare chart intervals and instruments in backtesting before deciding where this setup fits your approach.
  • Filter: Combine with other entry indicators (MACD, RSI, Stochastic)

Strategy 2: ATR Position Sizing & Risk Management

ATR Position Sizing strategy showing smaller positions during high volatility and larger during low volatility

The ATR Position Sizing strategy adjusts position sizes based on current market volatility, allocating larger positions during low volatility (tighter stops possible) and smaller positions during high volatility (wider stops needed), so risk exposure can be tested across different market conditions.

Setup in Tradeworks:

  1. Add Average True Range (ATR) indicator to your strategy
  2. Set parameters: Period = 14
  3. Configure position sizing rules:
    • Position Size Calculation: Max Risk / (ATR * Multiplier) = Position Size
    • Multiplier: Typically 1.5-2.5 (adjusts for desired stop width)
    • Max Risk: A predefined test risk level or position-size rule, if those fields are available in the editor.

Trade Management:

  • Stop Loss Exit Signal: Fixed at 'Strategy symbol BID price is less than (Previous bar close minus (ATR × Multiplier))' for longs, 'Strategy symbol ASK price is greater than (Previous bar close plus (ATR × Multiplier))' for shorts
  • Take Profit Exit Signal: Can be 2× risk (risk:reward 1:2) or volatility-based (e.g., exit when ATR is less than threshold)
  • Testing note: Compare chart intervals and instruments in backtesting before deciding where this setup fits your approach.
  • Integration: Use with any entry strategy (trend following, mean reversion, breakout)

For Bot Developers: Implementation Tips

Choosing ATR Parameters

  • Sensitivity: Shorter periods (7-10) for faster volatility adjustment but more noise
  • Baseline: Standard 14 is a common starting point before testing alternatives
  • Smoothing: Higher smoothing (20-25) for cleaner signals but slower response
  • Timeframe Adjustment: Use 14-period standard across most timeframes 1h-4h-daily

Combining with Other Indicators

  • Entry Signals: Add MACD or RSI for entry timing, then use ATR for stop/position sizing
  • Trend Filter: Combine with Average Directional Index (ADX) (high ATR + ADX is greater than 25 = strong trending conditions)
  • Multi-Timeframe: Use ATR on lower timeframe for entry timing, higher for overall market volatility context
  • Compatibility: ATR can be tested with many strategy types because it supports risk rules rather than entry direction
  • Volatility Bands: Combine with Bollinger Bands for dual volatility confirmation (ATR for stop sizing, Bollinger for entry timing)

Manageable Beginner Setup

  1. Start Simple: Use ATR for dynamic stop losses with your favorite entry strategy
  2. Add Filter: Set minimum ATR threshold (avoid trading when ATR is less than X pips, markets too quiet)
  3. Test Extensively: Backtest with different ATR multipliers (1.5, 2.0, 2.5) across multiple currency pairs
  4. Paper Trade First: Always run ATR-based strategies in simulation mode before going live
?

Questions

Frequently Asked Questions

What's the difference between ATR and Bollinger Bands for volatility measurement? +

ATR measures absolute volatility in price units, while Bollinger Bands measure statistical volatility around a moving average. For automated trading, ATR is often used for position sizing and stop placement, while Bollinger Bands are often tested for entry timing rules.

How do I determine the right ATR multiplier for stops? +

The ATR multiplier depends on trading style, timeframe, and market conditions. Start with a common test range such as 1.5 to 2.0 and compare values across different market conditions in Tradeworks before using a setup live.

Can ATR predict market direction or reversals? +

No. ATR is a non-directional volatility indicator. It can help describe whether the market is quiet or volatile, but it should not be used as a directional prediction signal.

How do I avoid false signals when using ATR for position sizing? +

Use ATR as part of a broader rule set. Minimum volatility thresholds, trend filters, stable ATR conditions, and clear Stop Loss Exit Signal and Take Profit Exit Signal logic can all be tested before deciding whether the setup fits.

How should fixed stops and ATR-based stops be compared? +

ATR-based stops adapt to changing market conditions, while fixed stops keep the same distance. In Tradeworks, compare both approaches in backtesting before deciding which stop logic fits the strategy.

What is the Average True Range indicator formula? +

The ATR formula calculates True Range as the greatest of: current high minus current low, current high minus previous close, or current low minus previous close. ATR is then the average of True Range over the selected period.

How is ATR calculated in trading? +

ATR is calculated by first finding the True Range for each bar, then averaging those values over the selected number of periods, often 14. Most trading platforms calculate ATR automatically once the period is selected.

Is ATR useful for risk management? +

ATR is commonly used for risk management because it adapts stop distances and position-size rules to current volatility. It should still be paired with predefined risk rules, exit logic, and backtesting.

Try it in Tradeworks

Want to try Average True Range in Tradeworks?

Build and test ATR rules in a no-code strategy builder before deciding whether they fit your trading approach.

Volume Indicators

Volume indicators measure the strength of price movements by analyzing trading volume. They help confirm trends and identify potential reversals.

Volatility Indicators

Volatility indicators measure the rate of price change. They help traders set stop losses, determine risk levels, and identify potential breakouts.

Bill Williams Indicators

A collection of indicators developed by Bill Williams for trend identification, momentum analysis, and fractal pattern recognition.