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.
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.
| Completed candle | 2024-01-04T11:00:00Z |
|---|---|
| Known after | 2024-01-04T12:00:00Z |
| Rolling highest High | 1.272700 |
| Wilder ATR | 0.001637 |
| Raw long line | 1.267790 |
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.
| Completed candle | 2024-01-04T13:00:00Z |
|---|---|
| Known after | 2024-01-04T14:00:00Z |
| Incoming stop for this hour | 1.267890 |
| Open / High / Low / Close | 1.269000 / 1.269400 / 1.266900 / 1.267100 |
| Raw long line | 1.267768 |
| Stop retained after close | — |
| Stop illustration | Quote touch · illustration ends |
| Completed candle | 2024-01-03T19:00:00Z |
|---|---|
| Known after | 2024-01-03T20:00:00Z |
| Incoming stop for this hour | 1.266368 |
| Open / High / Low / Close | 1.264600 / 1.267400 / 1.262900 / 1.266200 |
| Raw short line | 1.266756 |
| Stop retained after close | — |
| Stop illustration | Quote 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 n | ATR multiplier | Raw long line | Raw short line |
|---|---|---|---|
| 14 | 2 | 1.270710 | 1.269690 |
| 14 | 3 | 1.268666 | 1.271734 |
| 14 | 4 | 1.266621 | 1.273779 |
| 22 | 2 | 1.271176 | 1.269224 |
| 22 | 3 | 1.269364 | 1.271036 |
| 22 | 4 | 1.267552 | 1.272848 |
| 30 | 2 | 1.271429 | 1.268971 |
| 30 | 3 | 1.269743 | 1.270657 |
| 30 | 4 | 1.268057 | 1.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.
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.




