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 and every published strategy that uses SuperTrend on WOBR StrategyVerse.


Open the interactive page on WOBR AI → · WOBR.AI home