Set up Chandelier Exit in TradingView
Add the built-in Chandelier Exit from Indicators. Length controls the price lookback. ATR Length controls the volatility lookback. ATR Multiplier controls how far to offset the rolling high or low. For this exercise, use Length 8, ATR Length 10, ATR Multiplier 3 and the five-minute chart timeframe. Read completed candles. These settings produce the illustrated behavior and are suitable for reproducing the example.
The long calculation uses the highest high in the last eight bars, including the just-completed bar, minus three times ATR. The short calculation uses the lowest low plus the same ATR distance. The example starts ATR with the first ten true ranges and then applies Wilder smoothing. Some scripts anchor to the highest high or lowest low since entry. Check the anchor definition and whether the plotted line can loosen.
