All indicators

ATR Breakouts

May 14, 2019

Static chart image
Dynamic OverlaysSignalsMoving AveragesVolatility

The ATR Breakouts indicator is a trend-following tool designed to identify potential trend reversals and breakout points by utilizing dynamic volatility-adjusted thresholds. By combining Exponential Moving Averages (EMA) and Average True Range (ATR), the script provides clear entry and exit signals based on price momentum exceeding specific volatility bands.

Usage

The indicator can be used to spot breakout opportunities when the price moves aggressively away from its average.

  • Long Entry: A signal is generated when the closing price crosses above the upper breakout threshold (EMA + 2 * ATR).
  • Long Stop Loss: A diamond shape indicates a potential exit or stop-loss point if the price crosses back under the lower boundary of the upper band (EMA + ATR).
  • Short Entry: A signal is generated when the closing price crosses below the lower breakout threshold (EMA - 2 * ATR).
  • Short Stop Loss: A diamond shape indicates a potential exit or stop-loss point if the price crosses back above the upper boundary of the lower band (EMA - ATR).

Traders typically use these bands to ride established trends, entering on the expansion of volatility and exiting when the momentum fades back toward the mean.

Details

The script functions by calculating a baseline using an Exponential Moving Average (EMA). Around this baseline, it projects two sets of volatility bands calculated using the Average True Range (ATR).

  • The Entry Thresholds are set at a distance of 2 times the ATR from the EMA.
  • The Stop Loss Thresholds are set at a distance of 1 time the ATR from the EMA.

This approach ensures that signals are only triggered during periods of significant price movement that outpaces the current market volatility, filtering out minor price fluctuations.

Settings

  • Length: Determines the period used for the Exponential Moving Average (EMA) calculation, which serves as the central baseline.
  • Atr Length: Sets the lookback period for the Average True Range (ATR) calculation, controlling how sensitive the bands are to recent volatility changes.

FAQ

How do I use the signals for entries?

Entries are signaled by "LongEntry" and "ShortEntry" labels on the chart. These occur when the price closes outside the 2*ATR multiplier bands.

What do the diamond shapes represent?

The diamond shapes represent "LongSL" and "ShortSL" levels. These are triggered when the price returns closer to the EMA baseline (crossing the 1*ATR level), suggesting a loss of momentum or a potential trend exhaustion.

How can I access the ATR Breakouts indicator?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.