PROTECTED SOURCE SCRIPT

stelaraX - MACD ADX Filter

37
stelaraX – MACD ADX Filter

stelaraX – MACD ADX Filter is a momentum and trend-regime indicator designed to reduce false MACD signals by validating crossovers with ADX trend strength. It combines classic MACD momentum with a configurable ADX threshold to only highlight signals when the market is in a trending state.

This indicator is part of the stelaraX ecosystem, focused on clean technical analysis and AI-supported chart evaluation
stelarax.com

Core logic

The script calculates a standard MACD (MACD line, signal line, histogram) and a DMI/ADX trend filter. MACD crossovers are only considered valid when ADX exceeds the defined threshold.

Key principles:

* MACD measures momentum via EMA spreads and a signal EMA
* bullish crossover occurs when MACD line crosses above the signal line
* bearish crossover occurs when MACD line crosses below the signal line
* ADX measures trend strength independent of direction
* signals are filtered to only trigger when ADX indicates a trending regime
* histogram coloring reflects momentum direction and whether the trend filter is active

This approach prioritizes higher-quality momentum signals during trend phases and de-emphasizes signals in sideways conditions.

Visualization

The script plots:

* MACD line and signal line in a separate indicator pane
* a MACD histogram with dynamic coloring
* full-intensity colors when trend filter is active, faded colors when inactive
* a zero reference line for directional context
* a subtle background highlight when ADX confirms a trending regime
* triangle markers for filtered bullish and bearish crossover signals
* alert conditions for both filtered signal types

This layout makes it easy to differentiate trend-qualified signals from noise.

Use case

This indicator is intended for:

* filtering MACD crossovers during low-quality ranging markets
* identifying momentum shifts only when trend strength is present
* improving signal quality for trend-following strategies
* confirming trend continuation setups
* supporting systematic and AI-assisted chart evaluation

It works well across multiple markets and timeframes, especially when whipsaws are common in non-trending phases.

Disclaimer

This indicator is provided for educational and technical analysis purposes only and does not constitute financial advice or trading recommendations. All trading decisions and risk management remain the responsibility of the user.

כתב ויתור

המידע והפרסומים אינם מיועדים להיות, ואינם מהווים, ייעוץ או המלצה פיננסית, השקעתית, מסחרית או מכל סוג אחר המסופקת או מאושרת על ידי TradingView. קרא עוד ב־תנאי השימוש.