Skip to content

Supertrend

A trend indicator based on ATR bands that switches on a trend change. Supertrend plots a line above or below price based on ATR and switches when price breaks through it. When price is above the Supertrend line — an uptrend; below — a downtrend. It is used as a trend filter and for setting trailing stops.

Formula:

ATR = ATR(period)
Basic Upper = (High + Low)/2 + multiplier * ATR
Basic Lower = (High + Low)/2 - multiplier * ATR
Supertrend switches to uptrend when Close > Upper Band of the previous downtrend
ParameterTypeDefaultRange / Values
Multiplierfloat30.1-10
Periodint101-100
TriggerDirectionConditionDescription
Price crosses line up🟢 BuyPrice crossed the indicator line from below to above.The closing price crossed the indicator line from below to above.
Price crosses line down🔴 SellPrice crossed the indicator line from above to below.The closing price crossed an arbitrary indicator line (MA, Supertrend, etc.) from above to below.
Price above line🟢 BuyThe closing price is above the indicator line.The closing price is above the indicator line (MA, Supertrend, etc.). Reflects the current position of price relative to the trend line.
Price below line🔴 SellThe closing price is below the indicator line.The closing price is below the indicator line.
Enter uptrend🟢 BuyThe indicator entered an uptrend.Fires when a trend indicator (ADX/DMI, Ichimoku, Supertrend, etc.) signals the start of an uptrend.
Enter downtrend🔴 SellThe indicator entered a downtrend.Fires when a trend indicator (ADX/DMI, Ichimoku, Supertrend, etc.) signals the start of a downtrend. The specific condition depends on the indicator.
ParameterTypeDefaultRange / Values
Threshold (Enter downtrend, Enter uptrend)float500-100