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

See signal primitives, usage in published strategies and more on WOBR StrategyVerse.


Open in the WOBR AI app → · WOBR.AI home