OPEN-SOURCE SCRIPT

HMA Swing Levels [BigBeluga]

9 221
An advanced swing structure and trend-following tool built on Hull Moving Average logic, designed to detect major reversals and track dynamic support/resistance zones.

This indicator analyzes price swings using pivot highs/lows and a smoothed HMA trend baseline. It highlights key reversal levels and keeps them active until breached, giving traders a clear visual framework for price structure and trend alignment. The pivots are calculated in real-time using non-lagging logic, making them highly responsive to market conditions.


🔵 CONCEPTS
  • Combines a fast-reacting Hull Moving Average (HMA) with pivot logic to capture precise directional changes.
  • Detects non-lagging reversal highs and lows when pivot points form and the HMA direction flips.
  • Projects these reversal levels forward as horizontal support/resistance lines until broken by price.
  • Active trend is shown with a step-style trail line that reflects HMA bias over time.



🔵 FEATURES
  • Swing Level Detection:
    Identifies high/low reversals when trend direction changes and plots horizontal zones.
    快照
    Non-lagging logic of swing points detection:
    Pine Script®
    if h[1] == high[1] and high < h and change > 0 // Detected Swing High if l[1] == low[1] and low > l and change < 0 // Detected Swing Low
    快照
  • Persistent Support & Resistance Lines:
    Each detected swing high or low is extended forward until price invalidates the level. Dotted style is applied once breached.

  • Color-Coded Trend Trail:
    Displays a stepped trend trail using HMA slope: lime = uptrend, blue = downtrend.
    快照
  • Automatic Labeling:
    Each reversal level is labeled with its price for clear reference.
    快照
  • Age-Based Line Thickness:
    Every level increases in thickness every 250 bars. The longer the level lasts, the stronger it is.
    快照



🔵 HOW TO USE
  • Use green (support) and blue (resistance) levels to frame key reaction zones.
    快照
  • Trade with the trend defined by the trail color: lime for bullish bias, blue for bearish.
  • Explore where buy or sell orders are stacked
    快照
  • Look for breaks of swing lines to anticipate trend shifts or breakout setups.
  • Adjust the "Trend Change" input to tune the sensitivity of swing detection.
  • Adjust the "SwingLevels" input to define how far back to search for valid pivots.



🔵 CONCLUSION
HMA Swing Levels [BigBeluga] offers a hybrid approach to structural and trend-based trading. With automated non-lagging swing detection, persistent support/resistance tracking, and intuitive HMA-based trend coloring, it provides a powerful visual system for discretionary and systematic traders alike.

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。