Open almost any Indian trading screen and you’ll find a Supertrend line on someone’s chart. It’s a single line. In an uptrend it sits under price, in a downtrend it sits over price, and it jumps sides when a candle closes through it. Here’s the supertrend indicator explained from scratch: how the Average True Range (ATR) decides how far the line sits from price, how the trailing rule stops it from sliding back, what a buy or sell flip really is, and where it lets traders down on Nifty and NSE stock charts. One thing up front. The numbers in our worked example are invented purely for the arithmetic, and they aren’t real price levels for any stock.
New to reading charts? Our pillar guide to technical analysis for Indian stocks is the place to start. And since Supertrend is built on ATR, the explainer on the average true range indicator is handy background.
In this article
- So what is the Supertrend indicator?
- Supertrend indicator explained: the ATR building block
- Building the Supertrend formula, one step at a time
- Default settings: ATR period and multiplier
- Working through an example (hypothetical numbers)
- How to read buy and sell flips
- Supertrend as a trailing stop, and for sizing positions
- Where Supertrend falls short on NSE charts
- What to pair Supertrend with
- Supertrend questions we get asked
So what is the Supertrend indicator?
The Supertrend help page on TradingView calls it a trend-following indicator based on Average True Range. One line handles both trend detection and volatility, and TradingView says traders use it to catch changes in trend direction and to set stops. The page credits Olivier Seban with creating it. Investopedia’s Supertrend guide names Seban too, and dates the tool to 2009.
Zerodha Varsity deals with it in its chapter on other technical indicators (ADX, Supertrend, VWAP and more), and it makes a point a lot of beginners miss. Supertrend doesn’t predict direction. As Varsity puts it, once a direction is in place, the indicator helps you take a position and suggests you stay in it while the trend lasts. So treat it as a tool for riding a trend and getting out, not for forecasting one.
It looks much the same on every platform. Varsity describes a continuous line on the price chart that alternates between green and red. TradingView says it works on daily, weekly or intraday charts, and on stocks, futures or forex. In other words, the same tool fits a Nifty 50 daily chart, a Bank Nifty 15-minute chart or a single NSE stock.
Supertrend indicator explained: the ATR building block
Supertrend won’t make much sense until ATR does. Varsity says the same thing, because ATR values feed straight into the Supertrend calculation.
According to StockCharts’ ChartSchool article on ATR, J. Welles Wilder developed the measure, introduced it in his 1978 book New Concepts in Technical Trading Systems, and had commodities and daily prices in mind when he designed it. Everything starts with the True Range (TR), the largest of these three values:
- Current high minus current low
- Current high minus previous close (absolute value)
- Current low minus previous close (absolute value)
Why the last two? Gaps. ChartSchool points out that a volatility measure built only on the high-low range would miss the volatility from gaps, like a stock opening sharply up or down. ATR is usually based on 14 periods, per ChartSchool. The first ATR is the average of the first 14 True Range values. After that, each value is smoothed: Current ATR = [(Prior ATR × 13) + Current TR] ÷ 14. Investopedia’s ATR page writes the general version for any period n: [Previous ATR × (n − 1) + TR] ÷ n.
Two features of ATR carry straight over to Supertrend. One, ATR measures volatility, not direction; ChartSchool and Investopedia both make this point. Two, ATR is in absolute price units, not percentages. ChartSchool notes that low-priced securities end up with lower ATR values than high-priced ones as a result. So a ₹150 stock and a ₹4,000 stock will show very different Supertrend distances in rupees, even when they’re equally volatile in percentage terms.
Building the Supertrend formula, one step at a time
TradingView and the TA-Lib SuperTrend reference describe the same core maths. It begins at the bar’s midpoint, known as hl2 or the median price:
- hl2 = (High + Low) ÷ 2
- Basic upper band = hl2 + (Multiplier × ATR)
- Basic lower band = hl2 − (Multiplier × ATR)
Left alone, those basic bands would bob up and down with every bar. The trailing behaviour comes from a second step, which TradingView lays out:
- Final lower band: use the new basic lower band only if it is higher than the previous lower band, or if the previous close was below the previous lower band. Otherwise, keep the previous lower band.
- Final upper band: use the new basic upper band only if it is lower than the previous upper band, or if the previous close was above the previous upper band. Otherwise, keep the previous upper band.
While the trend is up, the plotted Supertrend is the final lower band. While it’s down, it’s the final upper band. Under TradingView’s logic, if the line has been riding the upper band, the trend turns up when the close rises above that band. If it has been riding the lower band, the trend turns down when the close drops below it. TA-Lib puts it simply: the line rides the lower band in an uptrend and the upper band in a downtrend, and the flip is your signal.
In an uptrend, the Supertrend line can rise or stay flat. It cannot fall. That one rule turns a volatility band into a trailing stop.
Default settings: ATR period and multiplier
There are only two inputs, the ATR lookback and the multiplier. TradingView labels them atrLength (how far back ATR looks) and multiplier (the number ATR is multiplied by to set how far the bands sit from price). Defaults vary between platforms, so check yours before copying settings from a video or a forum post:
- TA-Lib lists a default ATR period of 10 and a multiplier of 3.
- Zerodha Kite, according to Varsity, prompts for Period and Multiplier, with defaults of 7 and 3. Period here means the number of days used for the ATR.
- Investopedia says trading platforms’ standard defaults are an ATR of seven to 13 sessions and a multiplier of three.
The trade-off is the same everywhere, though. Investopedia explains that a shorter ATR period and a smaller multiplier make the indicator quicker to react and throw up more signals, which suits day traders. A longer period and a bigger multiplier do the reverse, which suits longer-term traders. Varsity calls the multiplier a crucial input. Set it too high and you get fewer signals; set it too low and you get more, with a bigger chance of false ones. The Varsity author’s suggestion is to keep it between 3 and 4.
History length matters too, and people often overlook it. ChartSchool notes that ATR values depend on where the calculation starts, and that the first values leave a slight mark on later ones. TA-Lib adds that published Supertrend versions don’t all agree on how to seed the trend at the start, and that a second published form (an AmiBroker script attributed to Seban) handles the inactive band differently around flips. So if Kite, TradingView and your screener show slightly different values for the same NSE stock, it’s usually down to settings, data history or how each one implements the formula.
Working through an example (hypothetical numbers)
We’ll use a made-up NSE stock, “Stock XYZ”, on a daily chart. Every price here is invented to show the arithmetic, and none of it describes a real stock or a real trade. Settings are ATR period 10 and multiplier 3, the TA-Lib defaults, with ATR updated using the smoothing formula above with n = 10. To get going, assume the uptrend is already in place, Day 1’s ATR is ₹20, the prior final lower band was ₹950, and Day 1’s basic upper band of ₹1,075 seeds the upper band.
Day 1: High ₹1,030, Low ₹1,000, Close ₹1,025. hl2 = ₹1,015. Offset = 3 × 20 = ₹60. Basic upper = ₹1,075, basic lower = ₹955. Because ₹955 is above the prior ₹950, the final lower band rises to ₹955. The Supertrend line is ₹955, ₹70 below the close.
Day 2: High ₹1,050, Low ₹1,020, Close ₹1,045. True Range = max(30, 25, 5) = ₹30. ATR = (20 × 9 + 30) ÷ 10 = ₹21. Offset = ₹63. hl2 = ₹1,035, so basic lower = ₹972. That is higher than ₹955, so the line ratchets up to ₹972. The basic upper of ₹1,098 is not lower than ₹1,075, so the upper band stays at ₹1,075.
Day 3: High ₹1,040, Low ₹990, Close ₹1,000. The stock fell below the previous close, so TR = max(50, 5, 55) = ₹55. ATR = (21 × 9 + 55) ÷ 10 = ₹24.40. Offset = ₹73.20. hl2 = ₹1,015, so basic lower = ₹941.80. That is below the previous ₹972, and the previous close (₹1,045) was not below the band, so the line stays at ₹972. The close of ₹1,000 is still above it, so the uptrend holds, now only ₹28 above the line.
Day 4: High ₹1,005, Low ₹950, Close ₹960. TR = max(55, 5, 50) = ₹55. ATR = (24.40 × 9 + 55) ÷ 10 = ₹27.46. The close of ₹960 is below the ₹972 lower band, so the trend flips down. That is the sell signal. The line now switches to the upper band. Basic upper = ₹977.50 + 3 × ₹27.46 = ₹1,059.88, which is below the carried ₹1,075, so the final upper band and new Supertrend value is ₹1,059.88. That is almost ₹100 above the close.
Four bars, three lessons. As price rose, the line climbed from ₹955 to ₹972. On Day 3 it refused to drop, even though volatility widened. And after the flip, the new line sits a long way from price, so anyone shorting right at the flip is accepting a wide stop.
A Supertrend flip tells you the old trend failed by its own rules. It does not tell you a new trend has started, and the new line often sits uncomfortably far away.
How to read buy and sell flips
On the basic reading, the sources agree. Varsity says you get a buy signal when price rises above the indicator value and the line turns green. You then hold the long until price closes below the green line, which works as a trailing stop. A sell signal comes when price drops below the line and it turns red. Varsity says you can use it to start a fresh short or to exit a long, though it cautions that waiting for this signal to exit an existing long can sometimes leave you with a loss, so use your own judgement. On shorts, the red line becomes the trailing stop.
TradingView says the same. When price falls below the curve, it turns red and signals a downtrend; when price climbs above it, it turns green and signals an uptrend. Each close above or below the line marks a new trend. Pay attention to that word, close. On an intraday chart, a candle that dips through the line and recovers before it finishes hasn’t flipped anything under the published formula. Making decisions on candle closes rather than ticks cuts out a lot of fake triggers.
Supertrend as a trailing stop, and for sizing positions
For most traders, the trailing stop is where Supertrend earns its keep. Investopedia suggests putting a long position’s stop at or below the Supertrend line, and a short position’s stop at or above it. Our guide to the trailing stop loss strategy compares this sort of volatility-based trail with fixed-point and percentage trails.
Investopedia also points out that the distance between price and the Supertrend line can help you decide how big a position to take. A hypothetical case: say a trader is fine losing ₹2,000 on one idea and buys Stock XYZ at the Day 2 close of ₹1,045, with a stop at the ₹972 line. That’s ₹73 of risk per share, so ₹2,000 ÷ ₹73 comes to about 27 shares, risking about ₹1,971 if the stop is hit exactly. In real life, slippage, gaps and charges can make the loss bigger. If the stock gaps below the line at the open, it won’t wait for your stop. And because ATR is in rupees, the same rule gives a volatile stock a wider stop and a smaller position on its own.
Supertrend has a cousin in the ATR-based “chandelier exit”. Investopedia’s ATR page credits that exit to Chuck LeBeau, describing it as a trailing stop set a multiple of ATR below the highest high since entry. Both tools use ATR to decide how much breathing room a trade gets. Where they differ is the anchor: the chandelier exit hangs off the highest high, while Supertrend works from each bar’s midpoint with a ratchet.
Where Supertrend falls short on NSE charts
Both TradingView and Investopedia caution against using Supertrend by itself. Here are the main weak spots:
- It lags. Investopedia calls it a lagging indicator that reacts to price rather than predicting it, so entries and exits can come late.
- It struggles in sideways markets. Investopedia says it tends to give false signals in choppy, rangebound conditions, which can mean repeated whipsaws. Varsity agrees that it works best in a trending market. Whenever Nifty or a stock is moving sideways, a Supertrend system can lose money through repeated small losses.
- It shows direction, not strength. Investopedia notes it says nothing about how strong a trend is and is not built to spot overbought or oversold conditions.
- Noise on short timeframes. Investopedia says market noise can have an outsized effect on short timeframes, and that technical analysts generally consider the indicator better on daily or weekly charts. That is worth thinking about before you put it on a 3-minute Bank Nifty chart.
- The settings matter and are hard to choose. Picking the ATR period and multiplier is a real challenge, and adjusting them to fit past charts can produce a setting that just memorises history.
- Odd edge cases. TA-Lib points out that because the two carried bands are released by different conditions, the lower band is not guaranteed to stay below the upper band. A flip can leave the line on the far side of the close, and within a trend the line can sometimes widen away from price.
Varsity says Supertrend throws up fewer false signals than a regular moving average system, which is one reason some traders like it. To compare the two yourself, read our guide to the moving average crossover strategy. Whichever way you lean, test it on your own instruments and timeframe first.
For Indian intraday traders, the risk backdrop is sobering. A SEBI study released in July 2024 (PR No. 13/2024) found that more than 70% of individual intraday traders in the equity cash segment lost money in FY 2022-23. A neat green-to-red line won’t change those odds. Position sizing and discipline count for far more than the indicator does.
What to pair Supertrend with
TradingView’s summary admits Supertrend sometimes gives false signals and says it works best with other indicators like MACD, Parabolic SAR or RSI. Investopedia’s approach is to use Supertrend to find the trend, then RSI, the stochastic oscillator or the average directional index to judge how strong it is. Its list of tools that work alongside it also covers moving averages, Bollinger Bands, MACD, volume indicators, Fibonacci retracements and the Ichimoku Cloud.
For an NSE trader, a sensible routine could go something like this:
- Choose your timeframe first and keep the Supertrend settings fixed for it. Don’t change them chart by chart.
- Check whether the market is trending at all. If price keeps crossing a flat line, stand aside rather than trading every flip.
- Look for a second, independent read before acting on a flip. That could be momentum (see our note on RSI divergence), volume, or a clear break of a prior swing level.
- Size the position from the distance to the line, and decide in advance what you will do if the stock gaps through it.
- Log every signal, including the ones you skip, and review them over a few weeks before trusting the setup with real money.
Supertrend questions we get asked
Who created the Supertrend indicator? Olivier Seban, according to TradingView, TA-Lib and Investopedia. Investopedia dates it to 2009.
What are the default Supertrend settings? That depends on your platform. TA-Lib uses an ATR period of 10 and a multiplier of 3. Zerodha Varsity says Kite uses 7 and 3. Investopedia describes platform defaults as an ATR of seven to 13 sessions with a multiplier of three.
Does Supertrend repaint? Under the published formula, a bar’s value depends on its own high, low and close plus the previous bar’s values. So for a bar that’s still forming, the value can keep changing until it closes. That’s why we judge signals on closed candles.
Is Supertrend good for intraday trading? You can use it on intraday charts, and TradingView lists intraday among its uses. But Investopedia warns that noise distorts it more on short timeframes and that it does better on daily or weekly charts. Test it before you lean on it.
Educational content only. Not investment advice. All prices in the worked example are hypothetical and were chosen to illustrate the formula.

Leave a Reply
Join the conversation
Commenting is open to registered readers. Sign up with just your email — no password needed, and it takes under a minute.
Sign up to comment Log in