Navigation: Realtest Script Language > Syntax Element Details > SuperTrend Category Indicator Functions Description Olivier Seban's SuperTrend indicator Syntax SuperTrend(len, mult) Parameters len - ATR lookback length mult - ATR multiplier Notes SuperTrend is like a trailing stop above or below typical price. Typical price (TP) is (H + L) / 2. The trend line is TP +/- ATR(len) * mult. When TP crosses above trend, trend flips to TP - ATR * mult. When TP crosses below trend, trend flips to TP + ATR * mult. Trend direction is therefore defined by whether TP is above or below trend. ATR is calculated using Wilder's smoothing. Copyright © 2020-2025 Systematic Solutions, LLC