ForexBestRobots.comCompare EAs →
EN

Chandelier Exit · Trend indicators

Chandelier Exit in Forex: 22 Periods, ATR × 3 and a Position Stop

Understand Chandelier Exit on real GBP/USD H1 charts: rolling highs and lows, Wilder ATR, a separate trailing stop and the timing of each update.

Real GBP/USD H1, UTC. Blue: raw long line. Gold: raw short line. Both use completed-bar 22/3 values; no trades are drawn.
Real GBP/USD H1, UTC. Blue: raw long line. Gold: raw short line. Both use completed-bar 22/3 values; no trades are drawn.

A Chandelier line and a stop attached to an open position can follow different paths. This guide uses 529 observed GBP/USD H1 candles to explain the raw 22/3 calculation, a separate stop that only tightens, and the information available before each hour begins.

1. Read the two raw lines

For the completed candle t, the long line is the highest High of the last 22 recorded candles minus three ATR values. The short line is the lowest Low of the same window plus three ATR values. Both lines can exist at once; neither is an entry instruction or evidence of a position.

On H1, 22 means 22 recorded hourly candles, not 22 days. These charts show provider OHLC quotes in USD per GBP. One pip is 0.0001. Candle colors describe Open versus Close; blue and gold distinguish the two Chandelier lines.

Real GBP/USD H1, UTC. Blue: raw long line. Gold: raw short line. Both use completed-bar 22/3 values; no trades are drawn.
Real GBP/USD H1, UTC. Blue: raw long line. Gold: raw short line. Both use completed-bar 22/3 values; no trades are drawn.

2. Calculate Wilder ATR and the 22-bar extremes

True Range is the largest of High−Low, |High−previous Close| and |Low−previous Close|. This reference seeds the first TR with High−Low and the first ATR with the arithmetic mean of the first n TR values. Later ATR uses Wilder smoothing: ((n−1)×previous ATR + current TR)/n.

Highest High and lowest Low include the current completed candle and its n−1 predecessors. ATR and the extreme window use the same n here. The baseline first becomes available at candle index 21; no value is invented for earlier candles. A different seed, price input, smoothing rule or history can produce different platform values.

TRₜ = max(Hₜ − Lₜ, |Hₜ − Cₜ₋₁|, |Lₜ − Cₜ₋₁|)
ATRₜ = ((n − 1) × ATRₜ₋₁ + TRₜ) / n
CEᴸₜ = HH(n)ₜ − m × ATRₜ
CEˢₜ = LL(n)ₜ + m × ATRₜ

3. Understand why a line can move backwards

The rolling high can stay unchanged while ATR increases. The distance subtracted from that high then grows and the raw long line falls. The highlighted historical candle shows this directly. It does not imply that a protective stop should be lowered.

An old high also leaves the window after 22 recorded candles. The new highest High may be lower even without a new downside extreme. The short formula has the mirrored behavior: its raw line can rise as volatility increases or an old low leaves the window.

The highlighted candle has the same rolling high and a larger ATR. The raw long line falls; the chart ends at that completed candle.
The highlighted candle has the same rolling high and a larger ATR. The raw long line falls; the chart ends at that completed candle.
Completed candle2024-01-04T11:00:00Z
Known after2024-01-04T12:00:00Z
Rolling highest High1.272700
Wilder ATR0.001637
Raw long line1.267790
At the highlighted candle, the earlier high has left the 22-bar window. The rolling highest High is now lower.
At the highlighted candle, the earlier high has left the 22-bar window. The rolling highest High is now lower.

4. Keep a position stop separate

For a separate hypothetical long position, begin with a valid raw long value after an anchor candle closes. After each subsequent untouched candle, keep the greater of the old stop and the new raw long value. For a short position, keep the smaller of the old stop and the new raw short value. These are additional management rules, not part of the raw overlay.

The anchor is a teaching convention, not a tested entry: each illustration starts at the first qualifying completed candle from index 44, with the raw level on the protective side of that Close. Long and short cases are independent. A new level on the wrong side of the current Close is marked unplaceable and the illustration ends.

Rᴸₜ = max(Rᴸₜ₋₁, CEᴸₜ)
Rˢₜ = min(Rˢₜ₋₁, CEˢₜ)
Sₜ = Rₜ₋₁

5. Apply the previous update to the next hour

During hour t, only the stop retained after hour t−1 is available. Test that incoming level against the current Open and High/Low before considering an update from the current candle. A long quote touch is Open≤stop or Low≤stop; for a short it is Open≥stop or High≥stop. Equality counts as a touch.

At the first touch, the illustration ends and no further stop is drawn for that case. An Open beyond the threshold is identified separately. The final H1 range can establish a provider-quote touch, but cannot determine the exact intrahour time, a broker fill, slippage or the Ask required for a short exit. The new line calculated at the same hour’s close cannot protect its earlier price path.

6. Inspect two historical stop illustrations

The long illustration shows the raw line falling while the retained stop stays unchanged, followed by a touch of the incoming threshold. The short illustration meets its threshold soon after the anchor. Neither case is presented as a winning trade, and no profit or loss is calculated.

The event tables separate the hour’s incoming threshold from the new raw value known after its close. On a terminal touch, the new raw indicator can still be calculated, but no updated position stop is assigned. This distinction also applies when a candle’s Close returns to the other side of a touched level.

White steps show the incoming long threshold for each hour. The illustration ends at the first quote touch; no execution price is claimed.
White steps show the incoming long threshold for each hour. The illustration ends at the first quote touch; no execution price is claimed.
Completed candle2024-01-04T13:00:00Z
Known after2024-01-04T14:00:00Z
Incoming stop for this hour1.267890
Open / High / Low / Close1.269000 / 1.269400 / 1.266900 / 1.267100
Raw long line1.267768
Stop retained after close—
Stop illustrationQuote touch · illustration ends
White marks the incoming short threshold. The first following hour touches it, ending this separate illustration.
White marks the incoming short threshold. The first following hour touches it, ending this separate illustration.
Completed candle2024-01-03T19:00:00Z
Known after2024-01-03T20:00:00Z
Incoming stop for this hour1.266368
Open / High / Low / Close1.264600 / 1.267400 / 1.262900 / 1.266200
Raw short line1.266756
Stop retained after close—
Stop illustrationQuote touch · illustration ends

7. Change the settings without choosing a winner

The explorer offers periods 14, 22 and 30 and multipliers 2, 3 and 4 on the identical source history. Increasing the multiplier lowers the raw long line and raises the raw short line by an additional ATR for each extra unit. Changing the period changes both volatility smoothing and the extreme window.

These nine settings are descriptive comparisons, not an optimization. A wider line alone does not demonstrate a better exit. The stop illustrations belong only to the declared 22/3 example; changing a setting shows raw lines without silently transplanting a position stop from another calculation.

Completed candle: 2024-01-31T22:00:00Z · Known after: 2024-01-31T23:00:00Z

Period nATR multiplierRaw long lineRaw short line
1421.2707101.269690
1431.2686661.271734
1441.2666211.273779
2221.2711761.269224
2231.2693641.271036
2241.2675521.272848
3021.2714291.268971
3031.2697431.270657
3041.2680571.272343

8. Explore completed candles and data limits

The source contains 31,736 minute rows grouped into 529 H1 candles. Archive labels use GMT+1 and are shifted one hour back to UTC. The declared minute-end convention groups labels in (hour start, hour end]. Four gaps between recorded hours and the observed minute counts remain visible. Missing candles are not filled; windows count recorded bars and TR uses the previous recorded Close.

The chart, its scale and its annotations end at the selected completed candle. Select a long or short example to restore 22/3, then use Previous, Next or the slider. Current OHLC and the raw calculation are known only after the displayed hour ends. These archived quotes do not establish Bid/Ask execution, broker stop distances or exact agreement with MT4 or TradingView.

Completed candle: —
Known after: —

Chart ends at the selected completed candle

Open / High / Low / Close
—
Observed minutes
—
Hours since previous bar
—
True Range
—
Wilder ATR
—
Rolling highest High
—
Rolling lowest Low
—
Raw long line
—
Raw short line
—
Incoming stop for this hour
—
Stop retained after close
—
Stop illustration
—

Frequently asked questions

Does the long Chandelier line always rise?

No. The raw line equals a rolling highest High minus a changing ATR multiple. It can fall. Keeping a position stop from loosening requires a separate maximum rule.

Does 22/3 mean 22 days and a three-pip stop?

Only a daily chart makes 22 refer to daily candles. Here it means 22 recorded H1 candles and three times ATR, not three pips.

Can the current candle’s line serve as its earlier stop?

No. A completed-candle value is known after that candle ends. These illustrations test the incoming stop first and update only after an untouched candle closes.

Does a wick through the line prove an actual exit?

It shows a touch in these provider OHLC quotes. Broker execution also depends on the quote side, order handling, gaps, spread and slippage.

Will the values match my terminal exactly?

That has not been verified. Compare source prices, history, ATR seed, smoothing, rolling-window rules and any direction or stop-management additions.

Data, calculation method and scope

The downloadable package contains the 31 original daily archives, extracted GBP/USD minute rows, rebuilt H1 candles, all nine raw calculations and a standalone replay. The mathematical stop illustrations are separate from the raw indicator. No trade return, fill or native-platform match is claimed.

Primary references