All indicators

Moving Average Percent Difference by KIVANC fr3762

Sep 3, 2018

Static chart image
Volume BasedSignalsOscillatorsMoving Averages

The Moving Average Percent Difference indicator calculates the percentage deviation between the current price and a selected moving average to help traders visualize trend momentum and volatility shifts. By normalizing the distance between price and its average into a percentage format, it provides a clearer view of price-moving average crossovers and overextended market conditions.

Usage

The Usage section focuses on interpreting the oscillator's position relative to the zero line and identifying volatility extremes.

  • Zero-Line Crosses: When the indicator crosses above zero, it signifies that the price has crossed above the selected moving average, indicating potential bullish momentum. Conversely, a cross below zero indicates the price has fallen below the moving average, suggesting bearish momentum.
  • Volatility Measurement: Higher absolute values (either positive or negative) indicate that the price is significantly stretched away from its average, which may suggest high volatility or a potential mean reversion.
  • Trend Strength: A sustained value above zero indicates a strong uptrend, while a sustained value below zero indicates a persistent downtrend.

Details

The Moving Average Percent Difference (MAPD) was developed by Kıvanç Özbilgiç, based on concepts by Tim Tillson. The script executes a simple but effective calculation: (Current Price - Moving Average Value) * 100 / Moving Average Value.

The tool provides flexibility by allowing users to choose from five different moving average types, each offering different sensitivity levels:

  1. Simple Moving Average (SMA): Provides a standard average of price over the period.
  2. Exponential Moving Average (EMA): Places more weight on recent price data to reduce lag.
  3. Weighted Moving Average (WMA): Assigns heavier weighting to more recent data points linearly.
  4. Volume Weighted Moving Average (VWMA): Incorporates volume data into the average calculation.
  5. Hull Moving Average (HullMA): Designed to reduce lag significantly while maintaining smoothness.

Settings

  • Moving Average Period: Determines the lookback period used to calculate the moving average. The default value is 50.
  • Moving Average Type: Allows the user to select the specific mathematical model for the average. Users input a number from 1 to 5 (1=SMA, 2=EMA, 3=WMA, 4=VWMA, 5=HullMA).

FAQ

What does it mean when the indicator is at zero? When the indicator is at zero, it means the current market price is exactly equal to the selected moving average, representing a point of intersection.

Which moving average type is best for reducing lag? The Hull Moving Average (Type 5) is specifically designed to minimize lag and is typically the most reactive to recent price changes among the available options.

How do I access the Moving Average Percent Difference? 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.

TradingView
NinjaTrader
MetaTrader 4/5

Unlock the entire LuxAlgo Library

Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.