Library · Indicators
Supertrend
Supertrend is a trend-following line built from the Average True Range that trails below price in rising phases and flips above price when a candle closes through it.
Why it matters
Supertrend is popular because it is easy to look at: one line, two colours, always on one side of price. That visual simplicity is also its main danger. A line that changes colour looks like an instruction, and it is not one.
Understanding how the line is built shows what it really is: a summary of where recent closes have been relative to a volatility-adjusted distance. That makes it a reasonable description of trending markets and a poor one of sideways markets.
What it looks like
Supertrend is drawn directly on the price chart. At any moment it is in one of two states.
LINE BELOW PRICE
Often called up-mode.
- Closes have stayed above the lower band
- The line only moves up or sideways
- Ends when a candle closes below it
LINE ABOVE PRICE
Often called down-mode.
- Closes have stayed below the upper band
- The line only moves down or sideways
- Ends when a candle closes above it
In plain words
Think of a ratchet strap. As the load moves one way, the strap tightens behind it and never loosens. If the load swings back hard enough to hit the strap, it snaps over to the other side and starts tightening from there. The strap shows which way the load has been moving. It cannot tell you when the next swing comes.
How it is calculated
- MidpointTake the middle of the candle: (high + low) / 2.
- Two bandsAdd and subtract a multiple of ATR, commonly 3 × ATR.
- RatchetIn up-mode the lower band may rise but not fall. In down-mode the upper band may fall but not rise.
- FlipWhen a candle closes through the active band, the line switches to the other band.
Basic upper band = (high + low) / 2 + multiplier × ATRBasic lower band = (high + low) / 2 - multiplier × ATR. ATR is the Average True Range over the chosen period.The ratchet step turns the basic bands into the final line. While the line is below price, each new lower band is compared with the previous one and the higher of the two is kept. The line can therefore climb or go flat, but it does not retreat. The mirror rule applies when the line is above price.
Ratchet and flipHypothetical illustration
All prices are hypothetical. The multiplier is 3 and, to keep the arithmetic short, ATR stays at 2, so the band sits 3 × 2 = 6 from each midpoint. The line starts below price.
| Period | High | Low | Midpoint | Basic lower band | Supertrend line |
|---|---|---|---|---|---|
| 1 | 104 | 100 | 102 | 102 - 6 = 96 | 96 |
| 2 | 103 | 99 | 101 | 101 - 6 = 95 | 96 (not allowed to fall) |
| 3 | 107 | 103 | 105 | 105 - 6 = 99 | 99 |
On period 4 the candle has a high of 102, a low of 97 and closes at 98. The close is below the line at 99, so the line flips. It is now drawn above price at the upper band: midpoint (102 + 97) / 2 = 99.5, plus 6, gives 105.5.
Settings and what they change
| Setting | Common value | Effect of changing it |
|---|---|---|
| ATR period | 10 | Shorter: the distance reacts quickly to a few large candles. Longer: the distance changes slowly |
| Multiplier | 3 | Smaller: the line sits close to price and flips often. Larger: the line sits far away and flips rarely |
A tight line and a loose line are both “right”. They simply define different amounts of counter-movement as enough to flip. Searching for the pair of values that produced the tidiest flips on a past chart is overfitting: the result describes that chart and is unlikely to transfer.
How to read it
- Line below price: recent closes have held above a level set by recent volatility. This is commonly interpreted as an uptrend being intact so far.
- Line above price: the mirror image.
- A flip: one candle closed beyond the line. The flip is reported after that close, so it always describes something that has already happened.
- Distance from price to line: a rough picture of how much adverse movement, in ATR terms, has so far been absorbed without a flip.
Going deeper
Supertrend is closely related to Keltner Channels: both place lines a multiple of ATR from a central price. Supertrend adds the ratchet and shows only one side. Parabolic SAR is another trailing tool, built on acceleration instead of ATR. The three share most of their information.
Because the line trails price, some traders refer to it when thinking about trailing stop placement. That is a separate risk decision. The line is an output of a formula, and markets do not respect it.
Practitioners who use Supertrend usually check it against market structure and against whether the market is trending at all, for example with ADX. In a range, repeated flips are expected behaviour, not a malfunction.
What it does NOT mean
- A flip is not a signal. It records that one candle closed through the line. Many flips are followed by a flip back.
- A line below price does not mean price keeps rising. It means closes have stayed above it until now.
- The line is not support or resistance. No orders rest there because of the indicator.
- Fewer flips do not mean a better setting. A wide multiplier flips rarely because it tolerates large moves against the trend before reacting.
Common mistakes
- Reading colour changes as instructions. The colour reports a past close, nothing more.
- Using it in sideways markets without noticing. The line was designed around trends and whipsaws without one.
- Forgetting the lag. A flip arrives after price has already moved by several ATRs from its extreme.
- Judging before the candle closes. The flip depends on the close, so the line can appear to flip during a candle and then revert.
- Optimising period and multiplier on history. A perfect fit to old data mostly measures the search.
Risks and limitations
- Supertrend is built from past highs, lows and closes. It follows price and cannot lead it.
- In choppy conditions it changes sides repeatedly.
- After a sudden volatility spike, ATR rises and the line moves further away, so the same market can look “safer” on the chart at the moment it is moving most.
- It contains no information about volume, liquidity or news.
Key takeaway
Supertrend is an ATR-based line that ratchets behind price and flips when a candle closes through it. The side it sits on describes past closes; a flip is a record, not a signal.
Sources and further reading
- New Concepts in Technical Trading Systems, J. Welles Wilder Jr. (1978). Introduced the Average True Range that Supertrend is built from
- Supertrend (opens in a new tab), TradingView. TradingView help article on Supertrend: built on Average True Range, bands from the high-low midpoint plus or minus multiplier times ATR