OPEN-SOURCE SCRIPT

SuperTrend Oscillator [ChartPrime]

2 566
⯁ OVERVIEW
The SuperTrend Oscillator [ChartPrime] is a hybrid momentum–trend indicator that transforms the classic SuperTrend into a full-strength oscillator.
Instead of simply plotting SuperTrend direction on the chart, this tool measures the distance between price and SuperTrend, normalizes it by volatility, and converts it into a dynamic oscillator that highlights trend strength, momentum extremes, and high-precision reversal points.

⯁ CONCEPTS
  • SuperTrend Engine: The indicator extracts the SuperTrend baseline and direction using ATR-based volatility. This acts as the core structure from which the oscillator is built.
  • Volatility-Adjusted Oscillation: (close − SuperTrend) is divided by ATR to standardize momentum across all markets and timeframes.
  • Adaptive Oscillator Types: The signal can be transformed using HMA, EMA, or SMA smoothing for varying responsiveness.
  • Momentum Extremes: Values above +1.7 or below −1.7 signal stretched price conditions where reversals are more likely.
  • Reversal Logic: The oscillator compares its current value with its value three bars ago. Large positive or negative pivots indicate momentum shifts.


⯁ FEATURES
  • Trend-Colored SuperTrend Line
    The SuperTrend line shifts color based on direction, giving immediate context for oscillator readings.
    snapshot
  • Full Oscillator Transformation
    Converts price–SuperTrend distance into a normalized oscillator, showing when momentum is expanding, contracting, or reaching exhaustion.
    snapshot
  • Gradient Momentum Coloring
    The oscillator line and candles are colored using a two-sided gradient:
    • Red tones for bearish momentum
    • Orange/cream tones for bullish momentum
    • Gray tones for low momentum
    snapshot
    This makes strength visually intuitive.
  • Extreme Zones (±1.7 Bands)
    Built-in upper and lower thresholds highlight zones where price is statistically overextended.
    snapshot
  • Dual Fill Layers
    The area above/below zero is filled in different colors to emphasize bullish or bearish oscillator regime.

  • Reversal Diamonds
    The script highlights significant reversals when:
    • Momentum shifts downward from high values (bearish pivot)
    • Momentum shifts upward from deep lows (bullish pivot)
    These diamonds help pinpoint exhaustion-based turning points.
    snapshot


⯁ HOW TO USE
  • Identify Trend Strength:
    A rising oscillator above 0 confirms bullish SuperTrend conditions; falling below 0 confirms bearish ones.
  • Spot Momentum Extremes:
    Readings above +1.7 or below −1.7 often signal overextended price moves.
  • Use Reversal Diamonds as Pivot Alerts:
    Diamond markers indicate high-probability turning points when momentum sharply reverses from extreme zones.
  • Confirm Trend Shifts with Color Changes:
    Candle and oscillator colors shift based on momentum direction, providing clean visual alignment with SuperTrend direction.
  • Combine with Structure or OB Zones:
    Reversal signals become more reliable when they occur at key S/R, order blocks, or liquidity sweeps.


⯁ CONCLUSION
The SuperTrend Oscillator [ChartPrime] modernizes the SuperTrend by transforming it into a volatility-aware oscillator with clear reversal markers, trend coloring, and momentum normalization.
This tool is ideal for traders who want both trend context and precise timing signals, blending SuperTrend’s reliability with the dynamics of a professional-grade momentum oscillator.

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.