OPEN-SOURCE SCRIPT
HMA Swing Levels [BigBeluga]

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
🔵 FEATURES
🔵 HOW TO USE
🔵 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.
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的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
🔵Gain access to our powerful tools : bigbeluga.com
🔵Join our free discord for updates : bigbeluga.com/discord
All scripts & content provided by BigBeluga are for informational & educational purposes only.
🔵Join our free discord for updates : bigbeluga.com/discord
All scripts & content provided by BigBeluga are for informational & educational purposes only.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
開源腳本
本著TradingView的真正精神,此腳本的創建者將其開源,以便交易者可以查看和驗證其功能。向作者致敬!雖然您可以免費使用它,但請記住,重新發佈程式碼必須遵守我們的網站規則。
🔵Gain access to our powerful tools : bigbeluga.com
🔵Join our free discord for updates : bigbeluga.com/discord
All scripts & content provided by BigBeluga are for informational & educational purposes only.
🔵Join our free discord for updates : bigbeluga.com/discord
All scripts & content provided by BigBeluga are for informational & educational purposes only.
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。