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.
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.
- 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|
- 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.
Strategy 1: ATR Stop Loss Strategy for Volatility Trading
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:
- Add Average True Range (ATR) indicator to your strategy
- Set parameters: Period = 14 (standard)
- 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
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:
- Add Average True Range (ATR) indicator to your strategy
- Set parameters: Period = 14
- 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.
- Position Size Calculation:
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
- Start Simple: Use ATR for dynamic stop losses with your favorite entry strategy
- Add Filter: Set minimum ATR threshold (avoid trading when ATR is less than X pips, markets too quiet)
- Test Extensively: Backtest with different ATR multipliers (1.5, 2.0, 2.5) across multiple currency pairs
- Paper Trade First: Always run ATR-based strategies in simulation mode before going live
Frequently Asked Questions
What's the difference between ATR and Bollinger Bands for volatility measurement?
ATR measures absolute volatility in price units (pips), while Bollinger Bands measure statistical volatility (standard deviations). For automated trading, ATR is often used for position sizing and stop placement, while Bollinger Bands are often tested for entry timing rules. In Tradeworks, use ATR for risk management and Bollinger Bands for entry timing.
How do I determine the right ATR multiplier for stops?
The ATR multiplier depends on: 1) Trading style (scalping 1.0-1.5, swing trading 1.5-2.5, position trading 2.5-3.5), 2) Timeframe (shorter timeframes need smaller multipliers), 3) Market conditions (more volatile markets may need larger multipliers). Start with 1.5-2.0 and backtest across different market conditions in Tradeworks to compare values.
Can ATR predict market direction or reversals?
ATR cannot predict market direction-it's a non-directional volatility indicator. However, ATR can help identify market conditions: 1) Low ATR = consolidation (prepare for breakout), 2) High ATR = trending/volatile (expect continuation or exhaustion), 3) Spiking ATR = potential volatility climax. Use ATR for context, not for directional signals.
How do I avoid false signals when using ATR for position sizing?
Add filters that Tradeworks supports: 1) Use minimum ATR threshold (avoid trading when ATR is less than X pips), 2) Use one chart interval at a time unless multi-timeframe fields are confirmed in the editor, 3) Wait for stable ATR (avoid extreme spikes), 4) Combine with ADX filter (ATR high + ADX is greater than 25 = strong trend, adjust accordingly), 5) Confirm trend direction before entry.
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: (High - Low), |High - Previous Close|, or |Low - Previous Close|. ATR is then the simple moving average of True Range over N periods (typically 14). This gives you a single value representing average volatility per bar.
How is ATR calculated in trading?
ATR is calculated by first finding the True Range for each bar (the largest of current range, gap up, or gap down), then averaging those values over 14 periods (the standard setting). Most platforms including MetaTrader calculate ATR automatically - in Tradeworks you simply select the ATR indicator and set the period.
Is ATR a good indicator for risk management?
ATR is one of the most practical indicators for risk management in automated trading. It adapts stop distances and position sizes to current volatility, so your risk stays consistent whether the market is calm or volatile. Combine ATR-based stops with predefined risk rules that are available in the editor for a clear risk-management rule set.
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.
Advanced Guides:
Trend Indicators
Trend indicators help traders identify the direction of market movement. They smooth price data to show whether an uptrend, downtrend, or sideways movement is occurring.
Simple Moving Average
Learn more →
Exponential Moving Average
Learn more →
Parabolic SAR
Learn more →
Heikin Ashi
Learn more →
High Low
Learn more →
Linear Regression
Learn more →
Two Pole Butterworth Filter
Learn more →
Ichimoku Kinko Hyo
Learn more →
Alligator
Learn more →
Envelopes
Learn more →
Doji Arrows
Learn more →
Oscillators
Oscillators are bounded indicators that move between set values. They help identify overbought and oversold conditions, momentum, and potential reversal points.
Relative Strength Index
Learn more →
Relative Momentum Index
Learn more →
Stochastic Oscillator
Learn more →
Moving Average Convergence/Divergence
Learn more →
Awesome Oscillator
Learn more →
Accelerator/Decelerator Oscillator
Learn more →
Commodity Channel Index
Learn more →
Relative Vigor Index
Learn more →
Williams' Percent Range
Learn more →
Gator Oscillator
Learn more →
DeMarker
Learn more →
Fisher Transform
Learn more →
Fisher CG
Learn more →
Laguerre RSI
Learn more →
Momentum
Learn more →
Moving Average of Oscillator
Learn more →
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.