Moving Average Delta Indicator by KIVANC fr3762
Mar 28, 2018

The Moving Average Delta indicator calculates the numerical difference between a specific moving average and the current price to highlight subtle momentum shifts and trend exhaustions. By visualizing this delta as an oscillator, the tool acts as a magnifying glass for moving average slopes, allowing traders to identify potential trend reversals before they become apparent on the price chart.
Usage
The Usage section describes how the script can be used, examples should be provided in this section. This section also focuses on how main settings affect the indicator interpretation and output.
- Trend Identification: When the MAD curve is above 0, the moving average is higher than the current price (suggesting bearish pressure). When the MAD curve is below 0, the moving average is lower than the price (suggesting bullish pressure).
- Trend Exhaustion: As a trend begins to weaken, the moving average typically flattens out. This is reflected in the MAD indicator as the curve begins to converge toward the zero line.
- Divergence and Peaks: Traders can monitor the maximum rising or falling distance from the zero line to gauge the intensity of a move and predict when the price has extended too far from its average.
To use this tool effectively, it is recommended to apply a Simple Moving Average (SMA) to your main chart with the same period settings as the MAD indicator to visually synchronize price-to-average relationships.
Details
The Moving Average Delta (MAD) operates on the principle of calculating the spread between a Simple Moving Average and the source price. While a standard moving average on a price chart can often appear laggy or smooth, the delta calculation amplifies the rate of change. By subtracting the price from the SMA, the script outputs the difference in pips or points. This transformation converts a lagging overlay into a leading momentum oscillator, making it easier to spot the exact moment a price begins to deviate from or return to its mean.
Settings
- Length: Determines the lookback period for the Simple Moving Average calculation. A higher length results in a smoother curve reflecting long-term trends, while a shorter length reacts faster to price changes.
- Source: Specifies the price data used for both the moving average calculation and the delta subtraction (e.g., Close, Open, High, Low).
FAQ
How do I interpret the zero line crosses? A cross above the zero line indicates the SMA has become greater than the price (price falling below average), while a cross below the zero line indicates the SMA is lower than the price (price rising above average).
What moving average type does this script use? The script utilizes a Simple Moving Average (SMA) to calculate the delta, providing a classic mean-reversion perspective.
How can I access the Moving Average Delta? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
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.