SuperTrend
Category: trend, volatility
A classic trend-following indicator that uses Average True Range (ATR) to calculate a trailing stop-and-reverse line. It identifies market regime shifts when price closes across the volatility-adjusted bands.
Formula
Middle = (High + Low) / 2 \\ UpBand = Middle + (Multiplier * ATR) \\ DownBand = Middle - (Multiplier * ATR) \\ Trend = (Close > UpBand_{t-1}) ? 1 : (Close < DownBand_{t-1}) ? -1 : Trend_{t-1} \\ SuperTrend = (Trend == 1) ? Max(DownBand, DownBand_{t-1}) : Min(UpBand, UpBand_{t-1})
Inputs
- Periode (default: 10)
- Multiplier (default: 3)
- Show_Filling (default: true)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.