BLACK FRIDAY 30% OFF
BLACK FRIDAY SALE 30% OFF MASTERCLASSES USE CODE BLACKFRIDAY SALE STARTS IN 02d 13h 36m 31s
Skip to main content

Supertrend Indicator Explained: ATR Bands, Trend Flips and Settings

Supertrend is a volatility-adjusted trend-following overlay calculated from a price midpoint and a multiple of Average True Range (ATR). Its active line usually appears below price in an upward indicator state and above price in a downward state. The line changes side when a specified reversal condition is met. It is a calculation of historical observations, not a forecast or an automatically executed stop.

Supertrend formula

For each completed candle calculate the midpoint M=(high+low)/2. The basic upper band is M+k×ATR and the basic lower band is M−k×ATR, where k is a positive multiplier. The ATR period controls the volatility lookback. Ten bars and a factor of three are a commonly encountered starting configuration, not a proven optimum. Unlike a simple Keltner envelope, Supertrend maintains final bands using the preceding bands and closing price.

In TradingView’s documented convention, the final upper band becomes the current basic upper band if it is below the preceding final upper band or if the preceding close was above that preceding final upper band; otherwise it retains the previous value. The final lower band becomes the current basic lower band if it is above the preceding final lower band or if the preceding close was below that previous lower band; otherwise it retains the previous value. The trend state then determines the active band. Platforms may differ in initialization and the timing of reversal comparisons.

Worked calculation: three consecutive candles

Assume the previous state is upward, with previous final lower 94, upper 110 and close 103. On the first new candle the high is 108 and low 100, giving midpoint 104. With ATR 3 and multiplier 3, the basic bands are 113 and 95. The final lower rises to 95; the final upper stays at 110. A close of 105 remains above the lower line. On the next candle H=107, L=99, ATR=3, the basic lower is 94, but the final lower remains 95 because the previous close was above it. The close is 100, so the upward state persists. On the third candle H=101, L=93, ATR=3, basic upper is 106 and basic lower is 88. The upper becomes 106, the lower remains 95 and a close of 94 falls below the lower line, switching to the downward state under the documented convention.

BarH/L/CBasic upper/lowerFinal upper/lowerActive line
1108/100/105113/95110/9595 (up)
2107/99/100112/94110/9595 (up)
3101/93/94106/88106/95106 (down)
● Close: 105, 100, 94● Active Supertrend: 95, 95, 106
The active band changes sides after the third completed close. Selected hypothetical observations; dots are not live market data.

How the ATR factor changes responsiveness

At a midpoint of 104 with ATR 3, factors of 2, 3 and 4 give initial lower bands of 98, 95 and 92. A larger multiplier normally increases the distance from the midpoint, although the final-band recurrence can retain an older level. A smaller factor can react sooner to a reversal but may flip more frequently in sideways conditions. Changing the ATR length also changes the smoothness of the volatility estimate. A short ATR can respond quickly to gaps; a longer estimate may adjust more slowly. Neither change establishes improved returns without testing.

FactorBasic upperBasic lower
211098
311395
411692

Supertrend versus Parabolic SAR and Keltner Channels

Supertrend uses ATR bands and a direction-dependent recurrence. Parabolic SAR moves towards a trend extreme using an acceleration factor. Keltner Channels usually place two ATR-based bands around an EMA and retain both boundaries. These constructions can react differently to the same price shock. Compare Parabolic SAR and Keltner Channels to understand why the overlays need not agree.

Signal timing and simulated execution

In the example the final state flips at the third close. A test based on completed closes cannot claim to have entered earlier during that bar. If the next executable price is 92 and an illustrative short exit level is 106, planned price risk is 14 units, before spread, financing or borrow costs. A gap to 110 could produce an 18-unit loss. A chart line is not a broker order and an alert does not guarantee a fill. Treat a reversal system and a long-only exit system as different research designs.

How to test the settings

Export standard OHLC prices and calculate ATR with the platform’s stated smoothing method. Reproduce the bands and state sequentially, retaining previous values. Check warm-up and equality conventions against completed chart bars. Compare one predetermined factor with an ordinary moving-average filter over trending and ranging samples. Measure turnover, losses, net returns and drawdown, and reserve later data for validation. Avoid selecting the most profitable settings from the same sample used to report performance.

Check state transitions in a spreadsheet

Calculate the basic bands in separate columns, then calculate the final bands from their preceding values. Store the previous trend state in another column. Under TradingView’s convention, the initial state before ATR is available is downward; after the warm-up, a previous upper-band state switches upward if the close exceeds the current final upper band, whereas a previous lower-band state switches downward if the close falls below the current final lower band. Equality alone does not trigger either strict comparison. For the third bar in the worked example, the closing value of 94 is below the retained lower band of 95. If the close were exactly 95 instead, that strict rule would retain the upward state. This is an important boundary test for implementation parity.

Compare the effect of adding the Choppiness Index to a Supertrend research rule, rather than assuming a volatility filter improves every reversal.

Frequently asked questions

Does a green Supertrend line mean buy?

No. It describes the indicator’s upward state; a separate validated rule and risk process are needed.

Can Supertrend change during a candle?

Yes, a provisional value can change with high, low and close until the bar finishes.

Is a higher factor always safer?

No. A wider reference can reduce some flips but increase adverse movement before an exit.

Start with ATR calculations and the technical analysis learning guide.

Further reading

TradingView: Supertrend calculation and settings.

General educational information only, not personalised financial advice. Trading involves risk of loss.


Stay Ahead of the Markets

Get market analysis, financial news and practical trading insights delivered straight to your inbox.