OPEN-SOURCE SCRIPT

Supertrend by JKR

60
Supertrend by JKR is a trend-following overlay that plots dynamic support/resistance bands around price and flips when the trend changes.

It builds a smoothed baseline using your selected moving average type (SMA, TMA, WMA, VWMA, TEMA, HMA, EMA, or VMA). Around this baseline, it computes a volatility/range offset (classic ATR mode or Dual-Thrust range mode) and creates two trailing bands:


  • UpTrend band (active during bullish conditions)
    DownTrend band (active during bearish conditions)



When price closes beyond the active band, the indicator flips trend direction and switches to the opposite band. While the trend remains active, the band “trails” price and updates in a way that avoids stepping backwards, which helps keep the trend structure clean and stable.

Options


  • Trend-change arrows (optional)
    Bar coloring or candle overlay (optional)
    Designed to evaluate on bar close for stable signals



Tip: Increase the Multiplier to reduce flips and widen bands; reduce Period to make the trend more responsive.

Wyłączenie odpowiedzialności

Informacje i publikacje nie stanowią i nie powinny być traktowane jako porady finansowe, inwestycyjne, tradingowe ani jakiekolwiek inne rekomendacje dostarczane lub zatwierdzone przez TradingView. Więcej informacji znajduje się w Warunkach użytkowania.