Consider a hypothetical long GBP/USD trade with substantial unrealised profit. Tightening its stop can reduce the amount given back, but it can also close the position during a pullback. An ATR-based rule links the distance to measured volatility; its results still depend on the price path, parameters and execution. This article explains how to define and test that rule.

Fixed distance and ATR distance describe different rules

A hypothetical 30-pip distance is 1.5 times an ATR of 20 pips, but only 0.375 times an ATR of 80 pips. That comparison describes scale; it does not predict an intraday pullback or prove the fixed trail will exit too early. MT5’s built-in trailing stop uses a point distance and terminal-side updates; an ATR rule needs a separate implementation.

ATR depends on the instrument, timeframe, data source and period examined. Record the actual ATR value in price units before converting it to pips or money. A fixed 30-pip distance can represent different fractions of ATR across pairs; gold contract sizes and the broker’s point convention also need checking. No quoted historical range guarantees today’s volatility or an early exit.

ATR measures range without price direction. True Range is max(high − low, |high − previous close|, |low − previous close|). Wilder’s recursive 14-period smoothing uses ATRnew = (13 × ATRold + TRnew)/14 after initialisation. TradingView defaults to RMA but permits other smoothing methods. A simple average can therefore differ from another implementation, though not necessarily at every point. State the period, smoothing and data source.

Chuck LeBeau's Chandelier Exit — the classic trail

The Chandelier Exit, attributed to Charles Le Beau in TradingView’s documentation, uses price extremes over a defined lookback and an ATR multiple. It is an indicator rule, not a broker guarantee or proof of superior exits. Keep the lookback and ATR period distinct from the rule that retains the previous stop.

Chandelier Exit — technical definition
AuthorCharles Le Beau; indicator attribution
Long trailhighest high of the last 22 sessions minus 3x ATR(22)
Short traillowest low of the last 22 sessions plus 3x ATR(22)
Reference pointhighest high in a 22-bar window, not the latest bar
Default multiplier3 in the displayed formula; alternatives require testing
Stop ratchetA one-way long stop requires max(previous stop, new candidate); the raw rolling Chandelier line can fall.

A common Chandelier formula uses the highest high over a defined lookback minus an ATR multiple. The raw candidate can fall if the rolling high falls or ATR rises. A stop that only moves favourably requires a separate ratchet rule, such as max(previous stop, candidate) for a long.

A wider trail may survive a pullback that triggers a tighter one, but it can also give back more unrealised profit. At a given calculation point the standard Chandelier line is three current ATR values below the rolling high. The eventual exit need not give back exactly three ATR from the trade’s highest price: ATR and the rolling reference can change, a ratchet may be added, and execution may slip.

Picking the multiplier — 2x, 3x, 4x across horizons

The multiplier controls the distance from the chosen price reference. Test it alongside the lookback, ATR period, activation and update timing. Changing the multiplier alone does not determine how many stops will trigger or which rule will produce a better return.

Hypothetical multiplier settings to compare
Setting A1.5–2× ATR(14): a smaller candidate distance at the same reading
Setting B2× ATR(14): twice the specified ATR value
Setting C3× ATR with the chosen period: specify it rather than assuming a timeframe standard
Setting D4× ATR(20): a larger candidate distance, with no guarantee of avoiding pullbacks
Setting E5× ATR(30): another test input; it does not capture an entire trend by definition
Comparison requirementHold data, execution assumptions and the rest of the rule constant when comparing settings

In a hypothetical hourly EUR/USD example, ATR(14) = 18 pips and a multiplier of 2 gives 36 pips. A separate daily example with ATR(22) = 80 pips and multiplier 3 gives 240 pips. These are arithmetic illustrations, not recommended settings or observations about typical trend lengths.

Longer holding periods may justify testing wider volatility buffers, but they do not make a particular multiplier optimal. Compare alternatives on representative data with costs and drawdowns. In the hypothetical opening case, tightening changes the exit rule; whether that helps or harms the result depends on the subsequent path.

Worked example — XAU/USD swing trade

For a hypothetical XAU/USD contract, assume one lot is 100 ounces, so 0.15 lot is 15 ounces. All following levels are USD per ounce. Assume the stated accepted stop fills exactly, no costs or gaps, and ATR remains USD 9 throughout the illustrated updates. This is an algorithm example, not a universal gold contract specification.

Long XAU/USD with 3x ATR Chandelier trail
Entryopens long at 2,010 USD per ounce
ATR(14) on H49 USD per ounce — an assumed smoothed True Range
Initial stop loss1.5x ATR below entry, at 1,996.50 USD
Trail activationonce price clears 2,023.50 USD (1 R from entry)
Trail rule once active3x ATR below the highest high since entry — dynamic
Highest high reached2,080 USD after ten trading days
Trail level at peak2,080 − 27 = 2,053 USD
Trail hitassumed exact stop fill at 2,053 USD
Result+43 USD per ounce, or 645 USD on a 0.15-lot position (15 ounces)

This example uses an initial stop and a separate trail activated after 1R of favourable movement. To prevent the long stop from moving down, apply an explicit ratchet: use the greater of the previous stop and the new candidate level. At activation, retain the initial stop if the candidate is lower. The stated peak calculation also assumes ATR remains at $9; a changing ATR would produce a different candidate.

For a second, explicitly hypothetical price path, assume a fixed USD 15 trail is active and accepted at USD 2,020 after a high of USD 2,035. An exact fill at USD 2,020 yields USD 10 per ounce, or USD 150 for 15 ounces before costs. The earlier ATR-path result of USD 645 differs by USD 495. This comparison is conditional on both stated paths and execution rules; it does not demonstrate that ATR trails generally outperform fixed distances.

Alternatives to ATR — Parabolic SAR and swing-based

A trail may instead use Parabolic SAR or confirmed swing levels. These algorithms choose different references. Compare their complete rules and results under the same assumptions rather than assuming one outperforms another in a named market regime.

Parabolic SAR updates a level from its previous value, a price extreme and an acceleration factor, and switches sides after a crossing. It can be used as an exit reference. An implementation must specify its parameters and turn rules, and convert the reference into an accepted order. A dot near a peak does not establish that a live position would exit there, or that SAR gives better prices than ATR.

A structure-based rule might place a long stop below a confirmed swing low, or a short stop above a confirmed swing high. Define when a swing becomes known and the buffer used; otherwise a test can use an extreme before it was available. Combining a swing reference with an ATR distance is another explicit algorithm to test, not a universal 1.5× minimum.

For shorts, reverse the memory rule too

The mirrored example requires minimum rather than maximum. Replacing the highest price with the lowest is insufficient.

Scroll sideways to see the full diagram

For shorts, reverse the memory rule tooInitial short stop105. With minimum100 and ATR1, candidate103 lowers the stop to103. Later minimum99 and ATR2 give candidate105. Taking the minimum of old stop and candidate retains103. Burgundy shows stop, green minima, dashes candidates.SHORT: lowest price+3 × ATRNext stop = min(old, candidate)98100103105StartUpdate 1Update 2Stop: 105→103→103Minima: 100→99; ATR: 1→2New candidate: 99+3 × 2 = 105Min rule keeps stop 103.

Our hypothetical-price model treats ATR1 and2 as inputs, not calculations from the two displayed minima. Update only after all step data are available. Assume the position stays open and each modified stop remains above current price. No complete market path, spread, costs or rejected modifications. Multiplier3 is an experimental parameter. Fidelity describes ATR as a range measure without direction;the memory rule is a separately defined algorithm.

The candidate may rise while the retained short stop does not.

For this short, the candidate is minimum since entry+3×ATR;the recorded stop is min(previous stop, candidate). Using the long-side max rule would raise103 to105 and change the algorithm:it would no longer trail only favourably. An ATR-derived level does not guarantee execution price.

The most common ATR trail mistakes

Knowing the multipliers and the Chandelier formula isn't enough. A handful of recurring mistakes can wreck even a correctly configured trail — and it's worth naming them out loud.

  • Changing the rule without recording it. A discretionary tightening changes the tested exit rule. Record its timing and reason; neither a fixed multiplier nor a manual change guarantees a better result.
  • Leaving activation undefined. Specify when trailing starts and how the candidate interacts with the initial stop. Starting at entry is a possible design choice; a long trail is below its reference high, not above it. Test the rule rather than assuming that every early activation exits at a spread-sized loss.
  • Assuming a multiplier is universally suitable. ATR normalises price movement, but strategy results can still differ across instruments and timeframes. Test candidate multipliers with execution costs instead of treating 3× for majors or 4× for crosses as established requirements.
  • Leaving pre-activation risk undefined. A trail that has not activated cannot replace an initial protective order. Define protection from entry, and check whether the trailing logic runs in the terminal, on a server or in a custom program. An active trailing stop can reduce exposure but does not guarantee a maximum loss.
  • Ignoring gaps. An ordinary stop can fill beyond its level when no executable quote exists there. Check product-specific guaranteed-stop terms if available; a calculated ATR line alone provides no execution guarantee.

Is a mechanical trail just a shortcut for people who won't think?

A mechanical rule makes decision points explicit: data available, candidate calculated, modification submitted and level accepted. Log all four. A rule reduces discretion only when its implementation and overrides are defined; that does not by itself prove a behavioural or financial benefit.

Consistent logging helps compare alternative rules. Record the actual version used on every trade, including discretionary changes, costs and rejected modifications. A fixed rule can still be overfitted, and a changing rule can still have a valid recorded equity curve. Separate parameter selection from later evaluation rather than treating a particular sample size as proof.

What to do tomorrow

  1. Check the implementation on a demo account. Distinguish MT5’s built-in point-distance trail from a custom ATR program. An indicator line does not automatically submit a protective order; verify where updates run and what happens offline.
  2. Build an algorithm reference card. Record timeframe, ATR smoothing, multiplier, price reference, activation and long/short memory rule. Treat every multiplier as a test input.
  3. Review stop distances as a test. Record stop distance, ATR, entry rule and outcome for a consistent sample, including trades that did not hit the stop. Compare candidate multipliers in a backtest or demo; ten stopped trades do not establish that future trades need at least 2.5× ATR. Recalculate volume if you widen a stop.

Related material: how a trailing stop works and when it kills your profit — the mechanics of a trailing stop in plain language; ATR as a volatility measure and position-sizing tool — the indicator's detailed mechanics; three volatility indicators in a trader's workflow — the broader context where ATR is one of three pillars of risk management.