OPEN-SOURCE SCRIPT
WaveTrend MACD Fusion Oscillator [MatrixQuantLabs]

WaveTrend MACD Fusion Oscillator is a composite momentum oscillator that combines WaveTrend trend structure with MACD momentum analysis in a unified panel.
It is designed to help traders better align trend strength, wave timing, and signal confirmation through normalization, filtering, and divergence analysis.
Core Concept
Instead of using the original WaveTrend histogram structure, this indicator adopts the standard MACD histogram as its momentum foundation.
This design choice allows for clearer and more reliable differentiation of trend strength, while maintaining consistency across different symbols and timeframes through normalization.
WaveTrend is then applied as a wave timing and signal layer, making the overall structure easier to interpret and more robust in varying market conditions.
Key Features
Normalized MACD for Cross-Market Consistency
• The indicator uses standard MACD parameters (12/26/9) and applies normalization to scale values into a consistent range.
• This helps avoid chart distortion across different symbols and timeframes.
• An optional “Hide Weekly+” mode is provided to prevent higher-timeframe MACD values from compressing the panel scale.
MACD Histogram with Optional MACD Lines
• The MACD histogram visually represents bullish and bearish momentum, with dynamic coloring to reflect momentum expansion or contraction.
• MACD and Signal lines can be optionally displayed when deeper analysis is required.
Divergence Detection (Regular & Hidden)
Built-in divergence detection supports both MACD lines and histogram-based divergences, with selectable modes:
• Regular Divergence for potential reversals
• Hidden Divergence for trend continuation
Pivot-based confirmation and range filters help reduce noise and false signals.
WaveTrend Oscillator with Cross Strength Classification
• The WaveTrend module consists of a main trend line and a signal line, highlighting wave structure and momentum shifts.
• Golden crosses and death crosses are classified into multiple strength levels, allowing users to distinguish minor signals from more significant ones.
• The closer a counter-directional cross occurs to the overbought or oversold zones, the stronger the potential reversal signal.
• Optional Laguerre smoothing can be enabled to reduce noise and improve signal stability.
MACD-Based Signal Filtering
WaveTrend cross signals can be filtered using MACD conditions:
• Histogram Filter: Bullish crosses only when the MACD histogram is bullish, bearish crosses only when bearish
• Zero-Line Filter: Bullish crosses only above the MACD zero line, bearish crosses only below
These filters help align wave signals with the broader momentum context and reduce counter-trend noise.
Parameter Notes
Normalization Period
• Adjust this value if the indicator appears compressed or if different symbols show inconsistent scaling.
Pivot Right
• Higher values provide stronger confirmation with more delay; lower values are more sensitive and respond faster.
Laguerre Smoothing (Gamma)
• Lower values offer stronger smoothing and stability; higher values provide faster but noisier responses.
Usage Notes

• Use WaveTrend crosses to identify wave timing and momentum shifts.
• Use MACD (histogram and zero line) to assess trend direction and momentum strength.
• Divergence signals should be treated as early warnings, not standalone trade triggers.
• Best results are achieved when combined with trend analysis, price structure, or higher-timeframe context.
Disclaimer
This indicator is intended for educational and analytical purposes only and does not constitute financial advice. Always apply proper risk management and confirm signals with additional analysis.
It is designed to help traders better align trend strength, wave timing, and signal confirmation through normalization, filtering, and divergence analysis.
Core Concept
Instead of using the original WaveTrend histogram structure, this indicator adopts the standard MACD histogram as its momentum foundation.
This design choice allows for clearer and more reliable differentiation of trend strength, while maintaining consistency across different symbols and timeframes through normalization.
WaveTrend is then applied as a wave timing and signal layer, making the overall structure easier to interpret and more robust in varying market conditions.
Key Features
Normalized MACD for Cross-Market Consistency
• The indicator uses standard MACD parameters (12/26/9) and applies normalization to scale values into a consistent range.
• This helps avoid chart distortion across different symbols and timeframes.
• An optional “Hide Weekly+” mode is provided to prevent higher-timeframe MACD values from compressing the panel scale.
MACD Histogram with Optional MACD Lines
• The MACD histogram visually represents bullish and bearish momentum, with dynamic coloring to reflect momentum expansion or contraction.
• MACD and Signal lines can be optionally displayed when deeper analysis is required.
Divergence Detection (Regular & Hidden)
Built-in divergence detection supports both MACD lines and histogram-based divergences, with selectable modes:
• Regular Divergence for potential reversals
• Hidden Divergence for trend continuation
Pivot-based confirmation and range filters help reduce noise and false signals.
WaveTrend Oscillator with Cross Strength Classification
• The WaveTrend module consists of a main trend line and a signal line, highlighting wave structure and momentum shifts.
• Golden crosses and death crosses are classified into multiple strength levels, allowing users to distinguish minor signals from more significant ones.
• The closer a counter-directional cross occurs to the overbought or oversold zones, the stronger the potential reversal signal.
• Optional Laguerre smoothing can be enabled to reduce noise and improve signal stability.
MACD-Based Signal Filtering
WaveTrend cross signals can be filtered using MACD conditions:
• Histogram Filter: Bullish crosses only when the MACD histogram is bullish, bearish crosses only when bearish
• Zero-Line Filter: Bullish crosses only above the MACD zero line, bearish crosses only below
These filters help align wave signals with the broader momentum context and reduce counter-trend noise.
Parameter Notes
Normalization Period
• Adjust this value if the indicator appears compressed or if different symbols show inconsistent scaling.
Pivot Right
• Higher values provide stronger confirmation with more delay; lower values are more sensitive and respond faster.
Laguerre Smoothing (Gamma)
• Lower values offer stronger smoothing and stability; higher values provide faster but noisier responses.
Usage Notes
• Use WaveTrend crosses to identify wave timing and momentum shifts.
• Use MACD (histogram and zero line) to assess trend direction and momentum strength.
• Divergence signals should be treated as early warnings, not standalone trade triggers.
• Best results are achieved when combined with trend analysis, price structure, or higher-timeframe context.
Disclaimer
This indicator is intended for educational and analytical purposes only and does not constitute financial advice. Always apply proper risk management and confirm signals with additional analysis.
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
If you had known me sooner, You would have been in awe of this market!
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
If you had known me sooner, You would have been in awe of this market!
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。