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.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
If you had known me sooner, You would have been in awe of this market!
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
오픈 소스 스크립트
트레이딩뷰의 진정한 정신에 따라, 이 스크립트의 작성자는 이를 오픈소스로 공개하여 트레이더들이 기능을 검토하고 검증할 수 있도록 했습니다. 작성자에게 찬사를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 코드를 재게시하는 경우 하우스 룰이 적용된다는 점을 기억하세요.
If you had known me sooner, You would have been in awe of this market!
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.