OPEN-SOURCE SCRIPT

Supertrend by JKR

785
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.

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.