MACD-X Overlay, More Than MACD
Mar 10, 2022

The MACD-X Overlay, More Than MACD indicator provides a versatile implementation of the Moving Average Convergence Divergence oscillator directly on the price chart, allowing traders to visualize momentum and trend shifts without taking up additional sub-pane space. By incorporating four distinct calculation methodologies, it offers advanced ways to interpret market strength beyond traditional MACD applications.
Usage
The tool can be utilized to identify classic MACD signals such as signal line crossovers, zero line crossovers, and price-momentum divergences. Users can choose to display the oscillator at the top or bottom of the price chart, with adjustable height and vertical positioning to prevent overlapping with price action.
Key applications include:
- Crossover Analysis: Identifying bullish or bearish momentum shifts when the MACD line crosses the signal line.
- Trend Confirmation: Using the zero-line crossover as a proxy for moving average crossovers.
- Divergence Detection: Spotting potential reversals when price makes new extremes that are not confirmed by the MACD-X oscillator.
Details
This script goes beyond the standard MACD by offering four different engines:
- MACD-Traditional: The classic calculation developed by Gerald Appel (Fast MA - Slow MA).
- MACD-AS (Histogram): Based on Thomas Aspray's work, this version emphasizes the distance between the MACD and its signal line to anticipate crossovers.
- MACD-Leader: Based on Giorgos E. Siligardos' research, this version uses weighted sums to reduce lag and lead price at critical trend changes.
- MACD-Source: A custom implementation evaluating the Source/MA ratio to provide early momentum indications with minimal lag.
The indicator is compatible with both linear and logarithmic scales and supports a lookback length of up to 250 bars for its on-chart overlay.
Settings
Oscillator Settings
- MACD Calculation Method: Selects between Traditional, AS (Histogram), Leader, or Source models.
- Fast Length: Sets the lookback period for the fast moving average.
- Slow Length: Sets the lookback period for the slow moving average.
- Source: The price data used for calculations (e.g., Close, HL2).
- Signal Smoothing: Sets the length for the Signal Line EMA/SMA.
- Oscillator MA Type: Choose between SMA or EMA for the internal MACD averages.
- Signal Line MA Type: Choose between SMA or EMA for the Signal Line.
Visual & Overlay Settings
- Display MACD/Signal Crosses: Toggles on-chart labels for crossover events.
- Highlight MACD/Signal Area: Fills the space between lines to visualize momentum dominance.
- Overlay Indicator Display Length: Limits the number of bars the overlay is drawn on (max 250).
- Placement: Positions the oscillator at the "Top" or "Bottom" of the chart area.
- Height: Adjusts the vertical scale of the oscillator.
- Vertical Indicator Position: Offsets the oscillator vertically to avoid price overlap.
FAQ
How do I access MACD-X Overlay, More Than MACD?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What makes the "Leader" version different?
The Leader calculation uses specific concealed weights to give more importance to recent price action, effectively leading the traditional MACD during significant trend changes.
Can I use this on a Logarithmic chart?
Yes, the script is designed to function correctly on both linear and log scales by dynamically calculating its vertical scale based on the visible price range.
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.