1. Valmy
  2. Learn
  3. Indicator catalog
  4. T21

Where would a trailing stop sit? Parabolic SAR, Supertrend and the Chandelier Exit

Intermediate 19 min read

Short answerA trailing stop for a long position sits below price and moves up as the trend rises, so it locks in part of the gain. Parabolic SAR starts far below and closes in faster each time price makes a new high. Supertrend sits three average true ranges (ATR) below each candle's midpoint and only moves up. The Chandelier Exit hangs three ATRs below the highest high of the last 22 candles. In a steady trend the wider stops keep a trader in longer; in a range all three can be hit again and again. If price gaps below a stop, the triggered order sells at the bids available then: often near the opening price, but it can be lower, or higher if bids recover first.

Each level is set at a candle's close and acts on the candles that follow. Where you put the stop decides how much of a trend you keep, how often a normal pullback shakes you out and how many units you can buy for the amount you are willing to lose. Size the position from the stop distance, then allow for fills beyond it: the stop decides when you exit, not the price you get.

Valmy noteValmy's v1 strategy language includes the simple moving average and no other indicator, so Parabolic SAR, Supertrend and the Chandelier Exit are taught here for reading charts (as of 26 November 2026).

How a trailing stop works, and when it can act#

A trailing stop is an exit level that follows a winning position: for a long, it rises with price and is never lowered on purpose. Each tool here computes its level from closed candles, so a level set at one candle's close applies only to later candles. There are two ways to act on it:

  • Resting stop order. After each close, move a sell stop to the new level. If price trades down to it during the next candle, a stop-market order triggers, becomes a market order and sells at the best bids available, usually close to the level. If the candle opens below the level, as after a gap, the order triggers at the open and fills at the bids available when it executes: often near the open, but possibly lower, or higher if bids recover first. What is a stop order, and why can it fill worse than its trigger price? explains why.
  • Closed-candle exit. Wait for a candle to close below the level, then sell at the next candle's open. This ignores brief wicks below the line but usually exits later. A strategy evaluated on closed candles works this way. Valmy's strategy runtime, for example, evaluates its rules on closed five-minute candles, and its backtests fill orders on a later candle (as of 26 November 2026).

The distance from entry to the first stop also sets the position size for a fixed risk, as How much should I risk on one trade? Position sizing from the stop distance explains. A wider stop means fewer units for the same planned loss.

The example in this lesson. Every figure except Figure 4 uses one synthetic market of daily candles that trades every day, designed to show a range, a 50-candle rise, a sharp fall and another range. Suppose a trader bought at the open of bar 37, at 107.95, and trailed a resting stop. In the charts, each stop is drawn on the candle it applied to, one candle after the close that set it. Charts that draw each value on the candle whose close produced it show the same lines one candle earlier. The fills assume the order executes exactly at the stop level, or exactly at the opening price when a candle opens below it. Spreads and slippage are not modeled, so real fills would usually be a little lower, and after a gap could be lower or higher than the open.

Parabolic SAR: a stop that accelerates toward price#

Parabolic SAR ("stop and reverse") is a trailing stop that starts some distance from price and closes in faster the longer a trend runs. J. Welles Wilder Jr. introduced it in his 1978 book New Concepts in Technical Trading Systems. It uses highs and lows only and is measured in price units. Each candle, the SAR moves toward the trend's extreme point (EP), the highest high since the long trend began, by an acceleration factor (AF). The AF starts at 0.02, rises by 0.02 with each new extreme and is capped at 0.20. When price touches the SAR, the system reverses from long to short, so by design it is always in the market.

Calculating Parabolic SAR step by step#

In an uptrend, the SAR for the next candle is SAR + AF × (EP − SAR), using the AF and EP after the current candle. Three rules complete the method:

  1. New high. If a candle's high exceeds the EP, the EP becomes that high and the AF rises by 0.02, up to 0.20.
  2. Two-candle rule. The SAR may never be above the lows of the two candles before the one it applies to. If the formula gives a higher value, the lower of those two lows is used.
  3. Reversal. If a candle's low reaches the SAR, the long is stopped out and a short begins. The new SAR is the old trend's EP, kept above the latest two highs, the AF resets to 0.02 and the EP becomes the candle's low.

The table uses the synthetic market around the purchase on bar 37. After bar 36 the SAR was 100.15, the EP 108.54 and the AF 0.10.

Bar High Low SAR for this bar EP after the bar AF after the bar
36 108.54 106.60 100.15 108.54 0.10
37 110.34 107.60 100.99 110.34 0.12
38 109.73 108.30 102.11 110.34 0.12
39 108.77 108.53 103.10 110.34 0.12
40 108.90 108.65 103.97 110.34 0.12
41 112.43 107.94 104.73 112.43 0.14
42 112.90 111.99 105.81 112.90 0.16

Working it through:

  • Bar 37: SAR = 100.15 + 0.10 × (108.54 − 100.15) = 100.99. Bar 37's high of 110.34 is a new extreme, so the EP becomes 110.34 and the AF 0.12.
  • Bar 38: SAR = 100.99 + 0.12 × (110.34 − 100.99) = 102.11. No new high on bars 38 to 40, so the AF stays at 0.12 and the SAR rises 0.99, then 0.87, then 0.76: each step is 12% of the shrinking gap to the EP.
  • Bar 42: after bar 41's new high of 112.43 lifted the AF to 0.14, SAR = 104.73 + 0.14 × (112.43 − 104.73) = 105.81.

The two-candle rule bites when the AF is large. By bar 52 the AF had reached its 0.20 cap, and for bar 53 the formula gave 117.59. That is above bar 52's low of 116.91, so the SAR was held at 116.91, and it stayed there for bar 54 as well.

Variant used. Wilder did not define how to start the calculation on a chart's first bars, and implementations differ, as TA-Lib's source comments note. The shared implementation used here picks the first trend by comparing the first two candles' midpoints and starts the SAR at the first candle's low (or high). TA-Lib instead compares the first two candles' directional movement. The start-up choice affects only the first trend. Implementations can also differ on whether a low exactly equal to the SAR counts as a touch (TA-Lib and the shared implementation count it); in this example no low equals the SAR exactly.

Reading Parabolic SAR on a chart#

On a chart, Parabolic SAR is a row of dots: below price while long, above price while short. The gap between the dots and price shows how much room the trade has, and in a long trend that gap shrinks steadily because the AF keeps rising.

Synthetic daily candles from bar 30 to bar 92 with Parabolic SAR dots below price from the purchase on bar 37 and a lower panel showing the distance from each close to the next SAR. The distance falls from about 7% to 0.2%. On bar 66 a wick touches the SAR at 126.30 and the dots switch above price, then switch back below on bar 73 while the rise continues to about 138.
Figure 1. Synthetic data. The SAR closes in on price until a single wick on bar 66 hits it, well before the top.
  • The purchase. The trader bought at 107.95 with the SAR for bar 37 at 100.99, 6.96 or 6.4% below.
  • The squeeze. The AF reached 0.20 on bar 44. After that, the SAR moved up a fifth of the remaining gap to the EP each candle, unless the two-candle rule held it back. At the close of bar 65 (126.52) the SAR for the next candle was 126.30, just 0.2% below.
  • The exit. On bar 66 a wick to 125.81 touched 126.30. The resting stop sold at 126.30, a gain of 18.35 per unit (17.0%). The candle itself closed at 128.54, and SAR reversed to the short side. It turned long again on bar 73 at 128.68, and the rise went on to a close of 137.85 on bar 78.

When Parabolic SAR misleads#

Parabolic SAR misleads in two ways: its accelerating stop can be hit by ordinary noise in a strong trend, as on bar 66 above, and its stop-and-reverse rule forces a new trade every time price crosses back in a range. In the synthetic range of Figure 2, bars 101 to 137 between 102.83 and 109.33, all four reversal trades that opened and closed inside the range lost money, 13.19 per unit in total.

Synthetic daily candles from bar 99 to bar 137 in a range between about 103 and 109, with SAR dots switching above and below price at bars 101, 112, 116, 122 and 134, a Supertrend line that changes direction once, and a lower panel showing the running result of the SAR reversal trades falling to −13.19 per unit.
Figure 2. Synthetic data. In a range, each SAR reversal opens a trade that the next reversal closes at a loss.

SAR reversed on bars 101, 112, 116, 122 and 134. Each reversal filled at the SAR level: 105.65, 103.74, 107.65, 104.24 and 108.20. The four trades opened and closed inside the range all lost: 1.91, 3.91, 3.41 and 3.96 per unit, 13.19 in all. Meanwhile the close went from 107.17 on bar 101 to 107.65 on bar 137, almost nowhere. Bar 122 was another wick: its low touched the SAR, and it closed above. A trader using SAR only as an exit for longs, and not reversing, would avoid the short trades but still be stopped out of each long.

Supertrend: ATR bands that only tighten#

Supertrend is a trailing line set a multiple of the average true range (ATR) below each candle's midpoint in an uptrend (or above it in a downtrend), and in an uptrend it can only rise. TradingView's documentation and TA-Lib attribute it to the trader Olivier Seban. It uses the high, low and close, is measured in price units, and the common defaults are ATR(10) and a multiplier of 3. The midpoint is (high + low) ÷ 2. In an uptrend the line is the lower band, midpoint − 3 × ATR, and it rises only when that band rises. A close below the line flips the trend, and the line jumps to the upper band above price.

Calculating Supertrend step by step#

Each candle, compute the basic lower band = midpoint − 3 × ATR(10). The Supertrend line in an uptrend is the larger of the basic band and the previous line, unless the previous close was below the previous line, in which case the basic band is used. A close below the line ends the uptrend. ATR is explained in How much does this market usually move? ATR and historical volatility. The table uses bars 44 to 48 of the synthetic market, with ATR(10) given to three decimals.

Bar Midpoint ATR(10) Basic lower band Supertrend line Close
44 115.125 1.859 109.55 109.55 115.99
45 116.165 1.738 110.95 110.95 116.26
46 115.37 1.770 110.06 110.95 114.63
47 115.91 1.887 110.25 110.95 116.78
48 116.855 1.737 111.64 111.64 116.86
  • Bar 45: midpoint = (116.49 + 115.84) ÷ 2 = 116.165. Basic band = 116.165 − 3 × 1.738 = 110.95, above the previous line of 109.55, so the line rises to 110.95.
  • Bar 46: a down candle. Basic band = 115.37 − 3 × 1.770 = 110.06, below 110.95, so the line holds at 110.95. The close of 114.63 is still above it.
  • Bar 47: 115.91 − 3 × 1.887 = 110.25, again below 110.95: the line holds.
  • Bar 48: 116.855 − 3 × 1.737 = 111.64, so the line rises again.

Variant used. This lesson follows the algorithm in TradingView's Supertrend documentation, which also starts the calculation in a downtrend on the first candle with an ATR value. TA-Lib's version starts in an uptrend and labels the two directions with the opposite signs from TradingView. ATR itself has start-up conventions that differ between libraries. These choices change only the first stretch of values, until the first flip.

Reading Supertrend on a chart#

On a chart, Supertrend is a stepped line under price in an uptrend and over price in a downtrend. Flat steps show the line holding while volatility or a pullback lowers the basic band. Because the distance is measured in ATRs, it widens when candles get bigger and narrows when they shrink, instead of shrinking steadily like the SAR.

Synthetic daily candles from bar 30 to bar 92 with a stepped Supertrend line below price from the purchase on bar 37, holding flat at 110.95 on bars 46 to 48, and a lower panel showing the distance from each close to the line between about 2% and 7%. The line is hit on bar 82 at 130.46, after which it switches to a dashed line above price.
Figure 3. Synthetic data. Supertrend rises in steps and holds during pullbacks, staying between 1.8% and 6.7% below the close.
  • The purchase. The line for bar 37 was 102.83, 5.12 or 4.7% below the 107.95 entry.
  • The pullbacks. The line held flat through dips such as bars 46 to 48. While the trader was long, it stayed between 1.8% and 6.7% below the close, which left room for the wick that stopped the SAR on bar 66.
  • The exit. On bar 82, the low of 127.87 went through the line at 130.46, and the resting stop sold at 130.46, a gain of 22.51 per unit (20.9%). Supertrend's own flip uses the close: bar 82 closed at 128.45, below the line, so a closed-candle trader would have sold at the open of bar 83, 128.45, which is 2.01 lower than the resting stop.

When Supertrend misleads#

Supertrend's main weakness as a stop is the same as any stop's: it is a level on a chart, not a guaranteed price. If the market opens below the line, a resting sell stop triggers at the open and becomes a market order. The line no longer sets the price: the order fills at the best bids available when it executes, often near the opening price, but lower if bids are thin, or higher if they recover first. In Figure 4, a stop at 60.28 faced a gap open at 57.24; assuming a fill at that open, the loss was 2.3 times what the stop distance suggested. The figure uses a separate set of synthetic daily candles for a stock that opens each morning near, but not exactly at, the previous close; on bar 51 it gaps down after news.

Synthetic daily stock candles from bar 30 to bar 62 with a stepped Supertrend line. Before bar 51 the stop is at 60.28, below a close of 62.56. Bar 51 opens with a gap at 57.24, below the stop, marked as the assumed fill, and price stays near 57 to 59 afterwards.
Figure 4. Synthetic data. A gap opened 5.0% below the stop. The example assumes the stop sold at the 57.24 open; a real fill could be lower or higher.

Before the gap, the stop sat at 60.28, 2.28 per unit (3.6%) below the last close of 62.56. Bar 51 opened at 57.24, 5.0% below the stop, and the resting sell stop triggered at the open. This example assumes it sold at exactly 57.24, so the loss from the last close was 5.32 per unit (8.5%), 2.3 times what the stop distance suggested. In a real market the fill depends on the bids when the order executes: thin opening bids would make it lower, and buyers returning quickly could make it a little higher. FINRA and the SEC both warn investors that a stop price is not a guaranteed execution price. A trader who sized the position for a 2.28 loss would have lost more than twice the plan at the assumed fill. The closed-candle version sold at the next open, 57.67, slightly better this time; it could just as easily have been worse.

Stocks gap between sessions, after weekends and on news. A crypto pair that trades every day has no session gap, but in a fast market price can still move past a stop between trades. Supertrend also whipsaws in ranges, though less often than SAR in this example: in Figure 2's range it changed direction only once, on bar 117, and its line then stayed below every low. A line that sits farther from price gives back more at the end of a trend, as the comparison below shows.

Chandelier Exit: a fixed ATR distance below the highest high#

The Chandelier Exit hangs a stop a multiple of the average true range (ATR) below the highest high of a lookback window, like a chandelier hanging from a ceiling. StockCharts and TradingView credit Charles (Chuck) Le Beau with creating it and Alexander Elder with popularizing it. It uses the high, low and close and is measured in price units. The usual settings are a 22-candle window and three times ATR(22): long exit = highest high of 22 candles − 3 × ATR(22). Unlike SAR and Supertrend, the plain formula has no ratchet: the line falls when ATR rises or when an old high drops out of the window.

Calculating the Chandelier Exit step by step#

The Chandelier Exit needs two numbers per candle: the highest high of the last 22 candles, including the current one, and ATR(22). The table uses bars 77 to 81, at the top of the synthetic rise, with ATR(22) given to four decimals.

Bar Highest high (22) ATR(22) Chandelier Exit Next candle's low
77 136.89 2.0391 130.77 135.85
78 138.02 2.0451 131.88 132.33
79 138.80 2.2462 132.06 133.42
80 138.80 2.1996 132.20 132.09
81 138.80 2.2223 132.13 127.87
  • Bar 80: 138.80 − 3 × 2.1996 = 132.20. That level applies to bar 81, whose low of 132.09 reached it, so the resting stop sold at 132.20.
  • Bar 81: the highest high was unchanged, but ATR rose to 2.2223, so the line slipped to 138.80 − 3 × 2.2223 = 132.13. The stop moved down without any new low in price.

Reading the Chandelier Exit on a chart#

On a chart, the Chandelier Exit is a line that follows the 22-candle high at a distance of three ATRs. It rises when a new high prints and drifts with ATR in between, so it reads as "the market would have to fall about three typical candle ranges from its recent peak to hit this".

Synthetic daily candles from bar 30 to bar 115 with the 22-candle high and the Chandelier Exit three ATRs below it, and a lower panel showing the distance from each close to the line while long, between about 1% and 4.5%. The line is hit on bar 81 at 132.20. After bar 100 the line falls steeply to 103.25 by bar 111 as old highs leave the window.
Figure 5. Synthetic data. The Chandelier Exit tracks the recent high and was the first of the three to be hit after the top, at the highest price.
  • The purchase. The line for bar 37 was 103.94, 4.01 or 3.7% below the 107.95 entry, the tightest of the three stops.
  • The trend. While the trader was long, the line stayed between 1.2% and 4.4% below the close.
  • The exit. It was hit on bar 81 at 132.20, a gain of 24.25 per unit (22.5%), two candles after the 138.80 high.

When the Chandelier Exit misleads#

The Chandelier Exit misleads when its line falls even though the market has not done anything a trader would call weakness. That happens for two reasons, both visible in Figure 5:

  • Rising ATR. From bar 80 to bar 88 there was no new 22-candle high, but large down candles lifted ATR(22), and the line slid from 132.20 to 129.85.
  • Old highs leaving the window. From bar 100 to bar 111 the 22-candle window dropped the highs of the old rise one by one. The line fell from 131.30 to 103.25, a drop of 28.05 in 11 candles, while the close stayed between 104.03 and 107.80.

A trader who reads the line as a stop that only tightens would be wrong: a position opened in that range would have seen its stop fall by about a quarter of the price. A trader who wants a stop that never loosens has to keep the highest level reached, which is a rule added on top of the indicator.

Comparing the three stops on the same trend#

On the same synthetic trend, bought at 107.95 on bar 37, the three stops sat at different distances and exited at different times. Parabolic SAR started widest (6.4% below) and was hit first, on bar 66 at 126.30. The Chandelier Exit started tightest (3.7%) and was hit on bar 81 at 132.20, the highest exit; Supertrend (4.7%) was hit on bar 82 at 130.46. A deeper pullback during the rise could have hit the Chandelier Exit first: one path does not rank the methods.

Synthetic daily candles from bar 58 to bar 86 with the three long stops each candle faced. The SAR dots end on bar 66 where the SAR is hit at 126.30. The Chandelier line is hit on bar 81 at 132.20 and the Supertrend line on bar 82 at 130.46, after the top close of 137.85 on bar 78.
Figure 6. Synthetic data. The SAR was hit early in the rise; the other two after the top, two and three candles after the high.
Stop Stop on bar 37 Distance below the 107.95 entry Units for a 100 USDT risk Hit on Exit price Gain per unit
Parabolic SAR (0.02, 0.20) 100.99 6.96 (6.4%) 14.4 Bar 66 126.30 18.35 (17.0%)
Supertrend (10, 3) 102.83 5.12 (4.7%) 19.5 Bar 82 130.46 22.51 (20.9%)
Chandelier Exit (22, 3) 103.94 4.01 (3.7%) 24.9 Bar 81 132.20 24.25 (22.5%)

The highest close was 137.85, on bar 78. None of the stops sold near it, and none can: a trailing stop exits only after price has fallen from its high by at least the stop distance. With closed-candle exits instead of resting stops, Supertrend and the Chandelier Exit would both have signaled on bar 82's close of 128.45 and sold at bar 83's open, also 128.45. The units column divides 100 USDT by the stop distance and ignores fees and the slippage that Figure 4 shows.

Check your understanding: Parabolic SAR, Supertrend and the Chandelier Exit#

Part 1, Parabolic SAR. In an uptrend, today's SAR is 50.00, the EP before today was 54.00 and the AF 0.06. Today's high is 54.80 and its low 52.10; yesterday's low was 51.20.

  1. What is tomorrow's SAR?
  2. Tomorrow's low turns out to be 50.20. What happens?

Part 2, Supertrend. The Supertrend line is 95.40 in an uptrend. Today's high is 101.0, its low 98.0, its close 99.0 and ATR(10) is 1.60.

  1. Where is the line after today?
  2. Overnight, news hits and the market opens at 93.00. What price can a resting stop-market sell order at the line expect?

Part 3, Chandelier Exit. The 22-candle high is 120.0 and ATR(22) is 2.5. The next candle makes no new high, but its wide range lifts ATR(22) to 3.0.

  1. What is the Chandelier Exit before and after?
  2. What does the change tell a trader holding a long?
Show the answers

Answer.

Part 1:

  1. Today's high of 54.80 is a new extreme, so the EP becomes 54.80 and the AF 0.08. Tomorrow's SAR = 50.00 + 0.08 × (54.80 − 50.00) = 50.384, about 50.38. It is below today's low (52.10) and yesterday's low (51.20), so the two-candle rule does not change it.
  2. A low of 50.20 is below 50.38, so the stop is hit. If the candle opened above it, a resting stop-market order triggers at 50.38 and sells at the best bids then available, usually close to that level. Under Wilder's rules the system then reverses to short, with the new SAR at the old EP, 54.80, or higher if a recent high was higher.

Part 2:

  1. Midpoint = (101.0 + 98.0) ÷ 2 = 99.5. Basic lower band = 99.5 − 3 × 1.60 = 94.70, below 95.40, so the line holds at 95.40. The close of 99.0 is above it, so the uptrend continues.
  2. Nothing traded at 95.40: the market went from the 99.0 close straight to 93.00. The stop triggers at the open and becomes a market order that sells at the best bids available when it executes. If that is the 93.00 opening price, the fill is 2.40 below the stop level. Thin opening bids would make it lower; buyers returning before the order executes could make it a little higher. The stop decided when the trader exited, not the price.

Part 3:

  1. Before: 120.0 − 3 × 2.5 = 112.5. After: 120.0 − 3 × 3.0 = 111.0.
  2. The stop fell 1.5 even though price made no new low. Rising volatility widens the Chandelier Exit. A trader who expected a trailing stop to move only up would need to keep the earlier 112.5 level deliberately.