MACD Pro + ADX Filter + Smart Histogram TP + RSI
Dec 5, 2025

The MACD Pro + ADX Filter + Smart Histogram TP + RSI indicator provides a comprehensive trend-following solution that integrates momentum filtering and automated exit logic to improve the reliability of standard MACD signals.
Usage
The script is designed to identify high-probability entries in trending markets while filtering out noise during consolidation.
- Trend Identification: The indicator generates "MACD BUY" and "MACD SELL" labels when a MACD crossover aligns with a strong trend as determined by the ADX.
- Momentum Filtering: Signals are only validated if the MACD histogram shows growing momentum in the direction of the trade, reducing the risk of entering late or against a fading move.
- Automated Take-Profit: Small triangles labeled "TP" appear when the indicator detects momentum exhaustion via the histogram. This logic helps traders secure profits as a trend begins to weaken.
- RSI Confluence: An integrated RSI pane displays overbought (OB) and oversold (OS) levels, providing additional visual confirmation for potential reversals or extended trends without altering the core MACD logic.
Details
This tool improves upon the traditional MACD by addressing its primary weakness: whipsaws in ranging markets. By requiring the ADX to be above a user-defined threshold, the script ensures that signals are only generated when there is sufficient directional strength. Furthermore, the "Smart Histogram TP" logic uses the slope of the histogram bars to pinpoint the exact bar where bullish or bearish momentum shifts, allowing for precise, non-lagging exit signals.
Settings
- Fast Length: The period for the fast Exponential Moving Average (default: 12).
- Slow Length: The period for the slow Exponential Moving Average (default: 26).
- Signal Smoothing: The period for the signal line calculation (default: 9).
- ADX Length: The period used to calculate the Average Directional Index (default: 14).
- Min ADX for Signals: The threshold level the ADX must exceed for an entry signal to be valid (default: 25).
- RSI Length: The period used for the Relative Strength Index (default: 14).
- RSI Overbought/Oversold: Customizable levels for identifying extreme market conditions.
FAQ
How do I access the MACD Pro + ADX Filter + Smart Histogram TP + RSI?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Can I use this for day trading?
Yes, the combination of ADX trend filtering and momentum-based exits makes it suitable for various timeframes, including 1H, 4H, and Daily charts for both day and swing trading.
Does this indicator repaint?
No, the signals and take-profit levels are calculated based on confirmed bar closes, ensuring that once a signal appears, it remains fixed on the chart.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.