Concept
Supertrend
Supertrend is a Trend concept. The Library holds 26 implementations, each one a working definition you can pull into Quant.
Top Supertrend indicators
26 total
What is Supertrend?
Supertrend is a volatility-trailing overlay that plots a single stop-and-reverse line: below price while the trend state is up, above it while the state is down. It builds bands a fixed multiple of ATR away from the bar midpoint (high plus low, divided by two), then ratchets them so the active band can move toward price but never away from it, until a close through the band flips the state. The common default is a 10-period ATR with a multiplier of 3.
The output is deliberately binary. On every bar the market is either in the up state or the down state, and the line itself doubles as the trailing invalidation level. Because the offset is ATR-based, the line sits wide in volatile conditions and tight in quiet ones, adapting stop distance without a parameter change. The design is commonly credited to French trader Olivier Seban.
Supertrend matters because it compresses three decisions (direction, stop placement, and reversal trigger) into one auditable line, which is why it anchors so many trend-following templates and alert setups. The tradeoff is the one every trailing method inherits: it performs when moves run and bleeds in chop, where alternating flips end up selling range lows and buying range highs.
How to calculate Supertrend
The calculation is a pair of ATR bands with a one-way ratchet:
- 1Compute ATR over the chosen length (commonly 10) and form two basic bands from the bar midpoint: (high + low) / 2 plus multiplier times ATR for the upper band, minus it for the lower (multiplier commonly 3).
- 2Ratchet the active band: in the up state the plotted lower band is the higher of the current basic lower band and the previous plotted band, so it can rise or hold but never fall while price stays above it. The upper band mirrors this logic in the down state.
- 3Flip on a close through the band: a close below the trailing lower band switches the state to down and the plot jumps to the upper band, and vice versa. The opposite band resets from its basic value at the flip.
- 4Read the result: line below price means up state, with the line acting as trailing support; line above price means down state, with the line acting as trailing resistance.
How traders use it
- As a regime filter: take or hold longs only in the up state and shorts only in the down state, often delegating actual entries to pullbacks or breakouts that occur inside that regime.
- As a trailing stop: the line is a ready-made volatility stop that tightens in quiet tape and widens in fast tape, so many traders exit on the flip rather than at a fixed target. The broader trailing method taxonomy shows where it sits among the alternatives.
- As a stop-and-reverse system: because a flip simultaneously closes one side and defines the opposite state, Supertrend supports always-in strategies, with all the range-market whipsaw that implies.
- In multiples: running several Supertrends with different multipliers turns the binary state into a graded one (how many lines agree), while pairing the chart-timeframe line with a higher-timeframe trend filter version suppresses counter-trend flips.
Supertrend vs similar trailing systems
Parabolic SAR: Both are flip-on-cross trailing systems, but Wilder's SAR tightens by an acceleration factor as new extremes print, so time and progress squeeze the stop toward price. Supertrend's distance is repriced from current ATR instead, so it can trail patiently through pauses that would force a SAR flip.
Chandelier Stop: The chandelier hangs a multiple of ATR from the highest high (or lowest low) of a lookback window, while Supertrend offsets from the bar midpoint and ratchets. Both are ATR trails; the chandelier anchors to swing extremes, Supertrend to typical price with an explicit flip convention.
Halftrend: Halftrend builds a similar flip line from moving-average extremes and ATR envelopes. The visual read is nearly identical, a line that swaps sides on trend change, but the trigger logic differs, so the two can disagree precisely in the transition zones where the decision matters.
ATR Trailing Regime: The umbrella category: any stop trailed at a multiple of ATR defines an up/down regime. Supertrend is the most codified member, standardizing the midpoint anchor, the ratchet rule, and the close-through flip.
More Supertrend implementations
- SuperTrend AI (Clustering)
- SuperTrend Polyfactor Oscillator
- Supertrend Parameter Sensitivity 3D
- Evasive SuperTrend
- KNN Supertrend Horizon
- AI SuperTrend Clustering Oscillator
- SuperTrend Fisher
- SuperTrend Logistic Regression
- Supertrend Pullback Signals
- Supertrend Volume Oscillator
- Supertrend (MTF) & Parabolic SAR
- Supertrend MTF Heikin Ashi
- SuperTrend with Chebyshev Filter
- Supertrend, HalfTrend, Ichimoku Cloud and P_SAR
- Confirmed Supertrend Flags
- Deadband Hysteresis Supertrend
- Hyperbolic Tangent SuperTrend
- Volatility Gated Supertrend
Related concepts · Trend-following systems
Concept family
Trend
100 concepts mapped · 88 in the Library
Supertrend FAQ
What are the best Supertrend settings?
The convention is a 10-period ATR with a multiplier of 3. Lowering either produces earlier flips and more whipsaws; raising them trades later entries for fewer false flips. No setting is best across markets: the parameters tune the same tradeoff every trailing stop faces, and behavior shifts with the volatility regime, so test on the instrument and timeframe you actually trade.
Does Supertrend repaint?
The standard formulation does not repaint on closed bars: once a bar closes, its band value and state are fixed. What can mislead is the live bar, where an intrabar flip can appear and then vanish if price closes back through the band. Acting only on confirmed closes removes that ambiguity.
Can Supertrend be used as a stop loss?
Yes; that is essentially what it is. The line is a volatility-scaled trailing level, so exits placed at or just beyond it inherit ATR's adaptiveness. Two caveats: after volatile bars the line can sit far from price, making the implied risk per trade large, and a flip is only confirmed at the close, so a resting stop at the line may fill before the signal does.
Why does Supertrend perform poorly in sideways markets?
A ratcheted trail needs directional progress to stay away from price. In a range, price keeps returning through the line, flipping the state near the extremes, so the system effectively sells lows and buys highs by construction. Common remedies gate signals with a trend or volatility filter, or require alignment with a higher-timeframe state, rather than altering the indicator itself.
Is Supertrend a leading or lagging indicator?
Lagging. It is computed from ATR and past prices, and it flips only after price has already traveled the full band distance. Its value is not prediction but discipline: an explicit, volatility-aware line that states where the current swing is invalidated and keeps the trend call unambiguous on every bar.
Build Supertrend your way.
Quant writes, tests, and refines it with you — then it runs on LuxAlgo charting or ports to TradingView.
.png&w=3840&q=75)
.png&w=3840&q=75)
