Chandelier Exit + ATR Trailing Stop + ATR Bands
Sep 13, 2020

The Chandelier Exit + ATR Trailing Stop + ATR Bands indicator provides a comprehensive volatility-based framework for identifying trend reversals, managing stop losses, and visualizing price expansion zones. By combining three distinct Average True Range (ATR) methodologies, this tool helps traders maintain a disciplined exit strategy while gauging current market volatility.
Usage
The Usage section describes how the script can be used to manage risk and identify trend shifts.
- Chandelier Exit: This component uses the highest high or lowest low over a specific period minus/plus a multiple of the ATR. Traders use the green area (Long Stop) to protect long positions and the red area (Short Stop) for short positions. A crossover between these lines often signals a shift in the medium-term trend.
- ATR Trailing Stop: Represented by circles on the chart, this stop-loss mechanism stays below the price in an uptrend (green) and above the price in a downtrend (red). It is designed to be "tight" and follows price action closely to lock in profits.
- ATR Bands: These bands create a volatility channel around the price. They serve as a visual guide for overextended price movements. If "Band Smoothening" is enabled, the bands appear less reactive to erratic price spikes, providing a clearer view of the trend's "noise" boundaries.
Details
The script calculates risk levels based on the Average True Range (ATR), a measure of market volatility. Unlike standard moving averages, these levels expand and contract based on how much the asset is moving.
- Chandelier Calculation: The Long Stop is calculated as
Highest High - (Multiplier * ATR), while the Short Stop isLowest Low + (Multiplier * ATR). - Trailing Stop Logic: The trailing stop utilizes a flipping mechanism. If the price breaks the current stop level, the indicator flips its orientation (Up/Down) and begins tracking from the opposite side. It includes logic to ensure the stop only moves in the direction of the trade (ratcheting) until a flip occurs.
- Smoothened Bands: The ATR Bands can be averaged over a user-defined period. This smoothing process uses a rolling sum of the price and ATR values to create a more stable envelope.
Settings
- Length: The lookback period used for calculating the ATR and the highest highs/lowest lows.
- Multiplier: The value used to multiply the ATR, determining how far the stop levels are placed from the price.
- Band Smoothening Periods: The number of bars used to average the ATR Bands if smoothing is enabled.
- Band Smoothening By Averaging: A toggle to enable or disable the smoothing calculation for the ATR Bands.
FAQ
How do I interpret the colors of the Trailing ATR Stop? When the circles are green and positioned below the price, it indicates a bullish trend where the stop is trailing a long position. When the circles are red and positioned above the price, it indicates a bearish trend where the stop is trailing a short position.
Can I use the ATR Bands for entries? While primarily used for exits and volatility visualization, some traders use the ATR Bands to identify mean-reversion opportunities when price reaches the upper or lower boundaries of the "cloud."
How can I access this indicator? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Unlock Unlimited Access to the LuxAlgo Library
Upgrade your plan to get all indicators, strategies, charts, and full access to Quant, our AI agent.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

