OPEN-SOURCE SCRIPT
מעודכן

ATR Chandelier Stop

164
Trade Control Adaptive ATR Chandelier Stop

The Trade Control Adaptive ATR Chandelier Stop is a volatility based trailing stop designed for swing and position traders who want a more objective way to manage exits and protect gains.

Instead of applying the same fixed percentage stop to every stock, the indicator uses Average True Range, or ATR, to account for how much each symbol typically moves. More volatile stocks receive wider stop levels, while lower volatility stocks receive tighter stop levels.

How it works

For long positions, the trailing stop is calculated as:

Highest high over the selected lookback period minus ATR multiplied by the selected multiplier

With the default settings, the calculation is:

22 bar highest high minus 3 times the 14 bar ATR

This creates a stop that hangs below the stock’s recent high, which is why it is called a Chandelier stop.

As the stock makes new highs, the stop can move higher. During normal pullbacks, the stop generally does not move lower while the bullish trend remains intact.

When price closes below the trailing stop, the indicator changes to a bearish state and begins plotting the corresponding stop above price.

Default settings

ATR Length: 14
Price Lookback: 22
ATR Multiplier: 3.0
Automatic Volatility Adjustment: Off by default

These settings are intended as a balanced starting point for swing and position traders using the daily chart and holding trades for several weeks to several months.

Adaptive volatility option

The optional adaptive setting adjusts the ATR multiplier based on ATR as a percentage of the stock price.

When enabled, the indicator gives highly volatile stocks additional room and may tighten the stop for lower volatility stocks. The standard 3 ATR setting remains the default for traders who prefer a simpler and more consistent approach.

Best uses

The indicator is designed for:

• Swing trading
• Position trading
• Trend following
• Managing profitable trades
• Reducing emotional exit decisions
• Monitoring individual stocks or watchlists

It is generally most useful on the daily timeframe.

Alert condition

The script includes an alert condition for a confirmed daily close below the trailing stop.

Recommended TradingView alert settings:

Condition: Daily Close Below ATR Stop
Interval: 1D
Trigger: Once per bar close

The alert is designed to trigger when the trend first changes from bullish to bearish. It does not repeatedly alert every day while price remains below the stop.

Important considerations

The Trade Control Adaptive ATR Chandelier Stop is a trade management tool, not a complete trading strategy.

Traders should also consider technical support and resistance, entry price, position size, maximum acceptable loss, earnings risk, gap risk, and overall market conditions.

A stock can gap below the plotted stop, particularly around earnings or major news. The indicator does not guarantee execution at the displayed price.
הערות שחרור
Updated the indicator title to TC ATR Chandelier Stop and replaced the publication chart with a cleaner daily timeframe example. No changes were made to the calculation logic or default settings.
הערות שחרור
Updated the indicator title to Trade Control ATR Chandelier Stop for clearer branding and consistency. Also replaced the publication chart with a cleaner daily timeframe example. No changes were made to the calculation logic or default settings.
הערות שחרור
  • Fixed a bug where long-exit signals could occasionally be missed
  • Improved the accuracy of the Beta Based multiplier mode
  • Volatility tier multipliers are now customizable in the settings
  • Minor alert and stability improvements
הערות שחרור
Added multiple ATR multiplier modes, including Standard, Manual, Auto by ATR%, and Beta Based. Added configurable volatility tiers, beta benchmarking, threshold controls, and a standard fallback multiplier when automatic calculations are unavailable. Improved trend state logic, added optional short side stop visibility, expanded Data Window diagnostics, and refined the confirmed daily close alert. Beta Based mode now falls back to the standard multiplier on unsupported higher timeframes.
הערות שחרור
Updated shortname
הערות שחרור
Updated Short name
הערות שחרור
This update introduces stock specific ATR multiplier selection and makes Auto by ATR% the default mode. The indicator now adjusts the Chandelier Stop based on each symbol’s recent volatility, using configurable ATR percentage tiers from 2.5 to 4.0. Standard, Manual, and Beta Based modes remain available for users who prefer a fixed or alternative calculation. This version also adds customizable tier thresholds, beta benchmark controls, fallback logic when automatic data is unavailable, optional short side stop visibility, improved trend transition logic, expanded Data Window values, and a confirmed daily close exit alert. The core default settings remain a 14 period ATR and 22 bar price lookback.
הערות שחרור
## Trade Control ATR Chandelier Stop

The Trade Control ATR Chandelier Stop is a volatility based trailing stop designed for swing and position traders who typically hold stocks for several weeks to several months. It uses Average True Range, or ATR, to place a dynamic stop below price during bullish trends and optionally above price during bearish trends.

The indicator is built around a Chandelier style calculation:

**Long stop = Highest high over the lookback period minus ATR multiplied by the active multiplier**

**Short stop = Lowest low over the lookback period plus ATR multiplied by the active multiplier**

The default settings are:

**ATR Length:** 14
**Price Lookback:** 22
**Multiplier Mode:** Auto by ATR%
**Chart Timeframe:** Daily
**Short Side Stop:** Hidden by default

### Multiplier modes

**Auto by ATR%** is the default and recommended mode. It adjusts the ATR multiplier based on the stock’s recent volatility relative to its price. This allows quieter stocks to use a tighter stop while more volatile stocks receive additional room.

Default ATR% tiers:

**Below 2%:** 2.5 ATR
**2% to below 4%:** 3.0 ATR
**4% to below 6%:** 3.5 ATR
**6% or higher:** 4.0 ATR

**Standard** uses one fixed multiplier for every symbol. The default is 3.0 ATR.

**Manual** allows the user to select a custom ATR multiplier.

**Beta Based** calculates rolling beta relative to the selected benchmark and assigns a multiplier using configurable beta tiers. ATR% is generally more directly relevant to stop placement because it measures the stock’s actual recent trading range, while beta measures movement relative to the broader market.

### How the stop behaves

During a bullish trend, the long stop trails below price and does not move lower while the trend remains active. If a confirmed candle closes below the active long stop, the indicator changes to a bearish state.

The short side stop can be displayed or hidden. When it is hidden, the visible line disappears after the long exit signal rather than moving above price.

This indicator is intended to provide an objective market based exit reference. It is not entry aware, so traders should still evaluate the distance between their planned entry and the current stop before opening a position.

### Daily close alert

The script includes the alert condition:

**Close Below ATR Stop**

For a single symbol, create the alert on a daily chart and use:

**Interval:** 1D
**Trigger:** Once per bar close
**Session:** Regular

For multiple stocks, the recommended setup is a **Watchlist Alert**. Select the watchlist as the alert target, choose this indicator and the **Close Below ATR Stop** condition, set the interval to **1D**, and use **Once per bar close**. TradingView will then evaluate every symbol in the watchlist independently using its own ATR%, multiplier, and daily Chandelier stop. The alert continues running even while the user views weekly or other chart timeframes.

### Important notes

The indicator is primarily designed for daily charts. ATR, the price lookback, and the stop are calculated from the active chart timeframe, so changing from daily to weekly changes the underlying calculation.

Automatic settings may change as volatility moves between tiers. The trailing logic is designed to prevent the active long stop from moving backward during an ongoing bullish trend.

This indicator is a risk management tool and does not guarantee profitable trades or prevent losses.
הערות שחרור
Updated the indicator’s default colors for better visibility across both light and dark chart themes. The long stop now defaults to green and the short stop to red. Also removed internal diagnostic plots from the Style tab to simplify the settings menu. The ATR%, beta, multiplier selection, Chandelier calculations, and confirmed daily exit alert remain unchanged.
הערות שחרור
Added an optional diagnostics table that displays the active multiplier, ATR percentage, calculated beta, beta sample count, and beta status without cluttering the Style tab. The table is off by default and can be enabled under Inputs → Diagnostics. Auto by ATR% remains the default mode, long and short stop colors remain green and red, and the Chandelier calculation and confirmed daily exit alert are unchanged.
הערות שחרור
Updated the Style tab to show two clearly labeled plots: Long Stop and Short Stop. Each stop now has its own independent color, line width, and line style controls, replacing the previous generic Color 0 through Color 3 entries. The optional diagnostics table remains available under Inputs and is still off by default. No changes were made to the ATR%, beta, multiplier selection, Chandelier calculations, or confirmed daily exit alert.
הערות שחרור
Updated the settings panel with clearer labels, improved tooltips, and more intuitive tier descriptions. Thresholds now identify where Tiers 2, 3, and 4 begin for both ATR% and Beta Based modes. Settings that do not apply to the selected multiplier mode are now disabled automatically, making the interface easier to navigate. The Long Stop, Short Stop, diagnostics table, ATR calculations, beta calculations, multiplier logic, and confirmed daily exit alert remain unchanged.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.