← Back to Home
Trading Signal / Indicator
🚀

Supertrend Indicator

A dynamic trailing stop and trend-direction indicator built on ATR.

Start Automating Free →

Want to automate this strategy? Try auto-Trading free — no credit card required.

Supertrend Indicator chart

Overview

What is Supertrend Indicator?

The Supertrend Indicator, developed by Olivier Seban, is a deceptively simple trend-following tool that produces remarkably clean buy and sell signals. It plots a single line on price: green below price during uptrends, red above price during downtrends. The line also functions as a dynamic trailing stop.

The indicator is constructed using the Average True Range. The upper band is calculated as (High + Low) / 2 + multiplier × ATR, and the lower band as (High + Low) / 2 − multiplier × ATR. When price crosses above the upper band, Supertrend flips to a buy signal; when price falls below the lower band, it flips to a sell.

The default settings (ATR period 10, multiplier 3) work well across multiple timeframes and asset classes, making Supertrend one of the few indicators that is genuinely useful "out of the box." The multiplier controls sensitivity — lower values generate more signals with more noise; higher values produce fewer, more reliable signals with larger stop distances.

Supertrend is particularly effective for identifying the beginning of trending moves and providing objective exit criteria. Its trailing nature means profits are protected automatically as the trend extends, eliminating emotional decisions about when to exit.

How It Works in auto-Trading

Automate It

auto-Trading's Supertrend implementation supports all parameter configurations and timeframes. Strategy rules can trigger entries on Supertrend color change with volume confirmation, and exits when Supertrend flips. You can combine Supertrend with RSI to filter signals — only taking Supertrend buys when RSI is above 50.

Try Free →

Strategy Code

Pick a script below, copy it, and use it on your chart.

Pine Script (TradingView)

This is a TradingView Pine Script example for this indicator. Paste it into the TradingView Pine Editor, add it to your chart, and adjust inputs for your market and timeframe.

//@version=6
strategy("Supertrend Indicator", overlay=true)
fastLen = input.int(20, "Fast Length")
slowLen = input.int(50, "Slow Length")
fast = ta.ema(close, fastLen)

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

ThinkScript (thinkorswim)

This is a thinkorswim ThinkScript example for this indicator. Open thinkorswim, create a custom study, paste the script, and apply it to your chart.

input atrLength = 10;
input multiplier = 3.0;
def atrVal = ATR(atrLength);
def basis = (high + low) / 2;
def upper = basis + multiplier * atrVal;

Get full strategy code access

Enter your email address and full name to unlock this strategy code.

Ready to automate Supertrend Indicator?

Join thousands of traders who use auto-Trading to execute this strategy automatically, 24/7.

Get Started Free →

All Strategies & Signals

Continue Learning

Trading Strategies

Trading Signals & Indicators