In this article
After this article, you can
- Define a short stop using the price minimum plus ATR distance.
- Distinguish a candidate from the level retained by the min rule.
Terms at hand: Average True Range (ATR) · Trailing stop · Short position · Stop loss · Price gap
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.
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.
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.
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
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.
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
- 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.
- 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.
- 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.
Check your understanding
One short exercise
About 2 min · you can try again
Previous short stop103, new candidate105. What does the defined rule retain?
- 105 because it is newest.
- 103, the lower level.
- 99, the new price minimum.
Check the answer and explanation
103, the lower level.
Min(103,105)=103. A higher ATR does not undo the earlier favourable adjustment.
Frequently asked
Which ATR multiplier should I pick for the trail?
No multiplier is universally best for a timeframe. At an assumed ATR of 18 pips, multipliers 2, 3 and 4 give distances 36, 54 and 72 pips. Compare complete rules on separate evaluation data, including costs, drawdowns and accepted stop updates. A larger multiple may avoid one pullback while giving back more profit on another path.
How is Chandelier Exit different from a plain ATR trail?
Chandelier uses a high or low over a specified lookback, rather than necessarily the current close. Its raw candidate can fall for a long when ATR rises or an old high leaves the window. To make the accepted long stop one-way, apply max(previous stop, candidate); use min for a short. This additional rule does not follow automatically from the indicator name.
Does an ATR trail replace the initial stop loss?
Define protection from entry and the condition for trailing to begin. In this hypothetical gold example the initial level is USD 1,996.50, and trailing activates after 1R of favourable movement. If the first candidate is below the accepted long stop, retain that stop. An ATR trail may instead be designed to start immediately. The exact program and platform determine how modifications are submitted; there is no universal native conditional order across MT5, cTrader and TradingView.
When is Parabolic SAR a better choice than an ATR trail?
SAR uses a price extreme and acceleration rule, while ATR trailing uses a range-based distance from a chosen reference. Whether either produces better exits depends on the complete price path, parameters and execution. Compare both under the same assumptions and on data separate from parameter selection; neither reliably identifies the peak by definition.
Sources & bibliography
-
Chuck LeBeau Computer Analysis of the Futures Markets · Book reference on computer analysis of futures markets. www.amazon.com ↗
-
J. Welles Wilder New Concepts in Technical Trading Systems · ATR + Parabolic SAR, 1978 www.amazon.com ↗
-
TradingView Average True Range — indicator documentation · official reference www.tradingview.com ↗
-
TradingView Average True Range — definition and calculation · TradingView describes the maximum-of-three True Range calculation and ATR smoothing. Its default RMA and length 14 are implementation settings, not a universal trading rule. www.tradingview.com ↗
-
TradingView Chandelier Exit — indicator calculation · TradingView’s Chandelier Exit documentation describes lookback price extremes, an ATR multiplier and configurable timeframe behaviour. A one-way retention rule requires separate specification. www.tradingview.com ↗
-
MetaQuotes MetaTrader 5 — basic trading principles · MetaTrader 5 distinguishes orders from executed deals, netting from hedging, stop handling and terminal-side trailing updates. Order acceptance does not guarantee an execution price. www.metatrader5.com ↗
