Pro Access

Supertrend Filter is part of the expanded Pro strategy library. The guide stays public, but running it in backtest, compare, paper tracking, and source-code view is a Pro capability. Pro currently unlocks 8 additional pre-built strategies.

The Intuition

Supertrend is an ATR-based trailing regime filter. It wraps price in a volatility-adjusted band and flips only when the close breaks through that band. The idea is simple: trend direction should only change when the move is large enough relative to recent range expansion.

Compared with moving-average crossovers, Supertrend adapts its distance from price using ATR. In quiet markets the band sits closer, so the system reacts faster. In turbulent markets the band widens, so the rule avoids treating every volatile swing as a regime break.

The appeal is operational discipline. Once a breakout is in force, the trailing band keeps the position alive until volatility-adjusted evidence says the move failed. That makes it closer to a stop-and-reverse framework than a pure entry signal.

The weakness is familiar to all trend systems: range-bound markets create repeated false breaks. Supertrend is also sensitive to the ATR period and multiplier. Tight settings make it responsive but noisy; wide settings reduce churn but leave more profit on the table during reversals.

The Math

Read this as a compact model summary: what the signal sees, what it ignores, and where fragility can creep in.

ATR(t)      = WilderMean(TR, n)
HL2(t)      = (High(t) + Low(t)) / 2
Upper(t)    = HL2(t) + multiplier × ATR(t)
Lower(t)    = HL2(t) - multiplier × ATR(t)
Supertrend  = rolling stop-and-reverse band built from Upper/Lower

Signal(t) = +1  if Close(t) > Supertrend(t)
          = -1  if Close(t) < Supertrend(t)

Parameters

ParameterTypeDefaultDescription
atr_period int 10 ATR lookback window
multiplier float 3.0 ATR multiple used for the trailing bands

Source Code

Source access for this built-in strategy is included with Pro.

Further Reading

  • Seban, O. (2009). Supertrend indicator notes.
  • Wilder, J.W. (1978). New Concepts in Technical Trading Systems. Trend Research.
  • Perry, J. (2012). Advanced Technical Analysis. Wiley.

When It Works / When It Fails

Works
  • Trending markets where ATR expansion follows directional moves
  • Instruments with clear trend plus pullback structure
  • Well-calibrated ATR multiplier for the specific instrument
Fails
  • Choppy markets — band crossings generate heavy whipsaw
  • ATR inflated by non-directional overnight gaps
  • Sideways consolidation — stop-and-reverse flips repeatedly

Regime Fit

Bull / Bear Trend + vol expansion
Best conditions. ATR band trails the trend cleanly; stop-and-reverse flips are infrequent and well-placed.
Bull / Calm vol
Reduced fit. ATR is narrow; minor pullbacks may cross the band without genuine trend reversal.
Transition (any vol)
Weakest fit. Band flips frequently with no directional persistence; maximum whipsaw environment.
No overlay defined
Qualitative fit matches Donchian family: Bull/Bear Trend + vol expansion best, Transition worst.

Compared to Alternatives

vs ADX Trend
ADX measures trend strength as a filter — it can signal flat; Supertrend gives a continuous long/short position via its ATR trailing stop. Supertrend is always invested.
vs Keltner Breakout
Both use ATR-based bands around EMA; Supertrend flips at the band as a trailing stop. Keltner only fires on a clean breakout — Supertrend is more active with more round-trips.
vs Donchian
Donchian fires on N-day price extremes; Supertrend uses a vol-adjusted ATR trailing stop. Supertrend is smoother but has more parameters requiring calibration.
Unlock This Strategy →