indicators

SuperTrend Indicator: Formula, Settings & How to Backtest

The SuperTrend indicator is a trend-following line drawn on a price chart. It sits below price when the trend is up and above price when the trend is down, flipping to the other side when a candle closes through it.

It's built from two inputs: the Average True Range (ATR) period and a multiplier. The most common setting is 10 and 3.

Don't copy someone else's "best settings". Test your own. Backtest a SuperTrend strategy free on AlgoTest

What Is the SuperTrend Indicator?

SuperTrend is a trend-following indicator based on the Average True Range (ATR). It can be used to spot changes in trend direction and to place stops. The indicator was created by Olivier Seban.

The line turns green below price in an uptrend and red above price in a downtrend. Because it moves with volatility, it acts like a trailing stop: it follows price at a distance that widens when the market gets choppy.

On AlgoTest, SuperTrend is one of the indicators you can use to build a no-code strategy in Signals AI, along with RSI, MACD, EMA, SMA, VWAP, Bollinger Bands, ATR, ADX, Stochastic and CCI.

SuperTrend at a Glance

Detail

SuperTrend

Type

Trend-following line drawn on the price chart

Built from

ATR period and a multiplier

Common setting

10 and 3 (some platforms default to 7 and 3)

Buy signal

Line flips below price and turns green

Sell signal

Line flips above price and turns red

Works best in

Clear trends

Weak spot

Sideways, choppy markets

SuperTrend Formula

Your charting platform calculates SuperTrend for you, but knowing the steps explains why the settings matter.

  1. True range (TR): for each candle, take the greatest of high minus low, high minus the previous close, or low minus the previous close.

  2. ATR: the average of the true range over your chosen period, such as 10 candles.

  3. Middle price: (High + Low) ÷ 2.

  4. Basic bands:

    • Basic upper band = middle price + (multiplier × ATR)

    • Basic lower band = middle price − (multiplier × ATR)

  5. Trailing rule: the bands only move in one direction within a trend. Within a trend, the lower band can only rise and the upper band can only fall.

  6. The SuperTrend line: it follows the lower band while the trend is up and the upper band while it is down. The trend flips when a candle closes through the line.

A quick example (illustrative numbers):

  • A 15-minute Nifty candle has a high of 25,420 and a low of 25,380, so the middle price is 25,400.

  • With an ATR of 30 and a multiplier of 3, the bands sit 90 points away: 25,490 above and 25,310 below.

  • In an uptrend, the SuperTrend line sits at 25,310, or higher if the lower band was already higher.

  • If a later candle closes below that line, SuperTrend flips red.

How to Read SuperTrend Buy and Sell Signals

  • Uptrend: the line is green and below price. As long as candles close above it, the trend is up.

  • Downtrend: the line is red and above price. As long as candles close below it, the trend is down.

  • The signal is the flip. A change from red to green is a buy signal, and green to red is a sell signal.

  • Wait for the close. The flip only counts once a candle closes through the line, not when price briefly crosses it during the candle.

  • The line doubles as a stop. Many traders exit, or trail their stop, at the SuperTrend line itself.

Best SuperTrend Settings (and Why You Should Test Them)

There's no single best setting. Each input changes how often the line flips:

Change

What happens

Shorter ATR period (e.g. 7)

ATR reacts faster to recent candles, so the line tracks price more closely

Longer ATR period (e.g. 14 or more)

ATR is smoother, so the line jumps less

Lower multiplier (e.g. 2)

The line sits closer to price: more flips, and more false signals in choppy markets

Higher multiplier (e.g. 3 or 4)

The line sits further away: fewer flips, but later entries and exits

supertrend indicator

Smaller settings make the indicator react faster and give more signals, while larger ones filter out noise but give fewer signals.

The timeframe matters as much as the numbers. The same 10 and 3 setting flips far more often on a 5-minute Nifty chart than on a daily one.

So instead of copying "10, 3" or "7, 3" from a forum, test two or three settings on the instrument and timeframe you actually trade, and keep the one that held up best.


Related: 5 Best Indicators for Intraday Trading

How to Trade Nifty Options With SuperTrend

Here's a simple directional rule set you can test. It's an example to backtest, not a recommendation.

Rule

Example

Chart

Nifty, 15-minute candles, SuperTrend 10 and 3

Bullish entry

When SuperTrend flips green, buy the ATM call

Bearish entry

When SuperTrend flips red, buy the ATM put

Exit

On the opposite flip, or at a fixed time before the close

Stop

The SuperTrend line on the Nifty chart acts as the trailing stop

Signals AI is built for this kind of rule. It lets options traders trigger ATM straddles, strangles or directional positions from exact indicator conditions.

How to Backtest SuperTrend Without Coding

Signals AI is a no-code, AI-powered strategy builder. You describe your trading idea in plain English and it turns that into an indicator strategy you can view on a chart, backtest, paper trade and deploy live.

  1. Describe the rule. Type something like "Buy the Nifty ATM call when SuperTrend 10,3 turns green on the 15-minute chart" into the Signals AI chat, the way you'd create trading signals with AI for any indicator.

supertrend indicator
  1. Set the inputs. Adjust the ATR period and multiplier on the canvas.

  2. Check the chart. Chart Preview shows exactly where your signals would have triggered on a real historical chart.

  3. Connect a strategy and run the backtest. Link the signals to an AlgoTest options strategy, such as an ATM call buy, and run it. Results come back in under 30 seconds.

  4. Repeat with other settings. Change the multiplier or period and compare the reports side by side.

  5. Paper trade before going live. Run the winning setup with virtual money first, or compare these paper trading websites and virtual trading apps.

If you already run SuperTrend on TradingView, you can send its alerts to AlgoTest instead. To see how other tools handle indicator automation, compare the best algo trading software in India.

SuperTrend Limitations

  • Choppy markets: SuperTrend works best in clearly trending markets. In sideways conditions, it produces unreliable signals.

  • Lag: the line flips only after a candle closes through it, so you'll miss the first part of every move.

  • No sense of strength: it shows direction, not how strong the trend is.

Most traders pair it with a second tool. SuperTrend can be combined with other indicators, such as the Relative Strength Index (RSI) or moving averages, to confirm signals. For example, add an EMA filter to trade only in the direction of the bigger trend, or ADX to skip weak, sideways phases.

Related: How to Backtest Rolling Straddles with Indicators

Test the Line Before You Trust It

SuperTrend is popular because it's simple: green means up, red means down. But how well it works depends on your timeframe, period and multiplier, and on whether the market is trending at all. Write down your exact rule, entry, exit and settings, then check how it held up on past data and in a paper trade before any real order goes in.

AlgoTest helps you turn an indicator idea into a strategy you can inspect, backtest and automate before you decide to deploy it. Join us as we simplify algo trading in India.

FAQs

What is the best setting for the SuperTrend indicator?

There's no single best setting. 10 and 3 is the most common starting point, but the right setting depends on your instrument and timeframe. Backtest two or three options and keep the one that held up best.

What is the SuperTrend formula?

The basic upper band is (High + Low) ÷ 2 + multiplier × ATR, and the basic lower band is (High + Low) ÷ 2 − multiplier × ATR. The SuperTrend line follows the lower band in an uptrend and the upper band in a downtrend.

Is SuperTrend good for intraday trading?

It can be, as long as the market is trending. On short timeframes in a sideways market it flips often and gives false signals, so many intraday traders pair it with a filter such as an EMA or ADX.

Does SuperTrend repaint?

Not on closed candles. On the candle that's still forming, the line and its colour can change until that candle closes, which is why most traders act only on flips at the close.

Can I backtest SuperTrend without coding?

Yes. In AlgoTest's Signals AI, you can describe a SuperTrend rule in plain English, check it on the chart, connect it to an options strategy and backtest it without writing code.

ESC
Type to search...
↑↓ Navigate↵ Openesc Close