SuperTrend
Category: trend, volatility
The SuperTrend indicator is a trend-following tool based on ATR. it plots a dynamic line that serves as support or resistance, flipping polarity when price closes across the ATR-calculated boundary.
Formula
Middle = (High + Low) / 2; \nUpperBand = Middle + (Multiplier * ATR); \nLowerBand = Middle - (Multiplier * ATR); \nTrend = (Close > PrevUpperBand) ? 1 : (Close < PrevLowerBand) ? -1 : PrevTrend; \nSuperTrend = (Trend == 1) ? Max(LowerBand, PrevLowerBand) : Min(UpperBand, PrevUpperBand)
Inputs
- Periode (default: 10)
- Multiplier (default: 3)
- Show_Filling (default: true)
See signal primitives, usage in published strategies and more on WOBR StrategyVerse.