OPEN-SOURCE SCRIPT

HMA Swing Levels [BigBeluga]

23 325
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. קרא עוד בתנאים וההגבלות.