All indicators

Moving Average Entanglement

Dec 7, 2020

Static chart image
SignalsOscillatorsMoving AveragesVolatility

The Moving Average Entanglement indicator quantifies the distance between two moving averages standardized to the Average True Range (ATR) to identify high-conviction breakout points and trend transitions. By filtering price action through a volatility-adjusted "Dead Zone," the tool helps traders distinguish between noise and significant market moves.

Usage

The Usage section describes how the script can be used to identify trend momentum and volatility breakouts. The indicator is primarily used as an oscillator to determine if the gap between two moving averages is significant enough to warrant a trade entry.

  • Breakout Confirmation: When the histogram bars rise above the red "Dead Zone" line, it indicates that the current price move has exceeded the minimum volatility threshold. This confirms that the trend has enough strength to be considered a valid breakout.
  • Secondary Filtering: The dashed blue line serves as a signal line (a moving average of the histogram). Histogram values exceeding this line suggest a localized surge in momentum.
  • Trend Direction: While the histogram shows the magnitude of the gap, the color (if enabled) indicates trend direction: green for bullish (Fast MA > Slow MA) and red for bearish (Fast MA < Slow MA).
  • Standard Deviation Filter: When Standard Deviation Mode is enabled, the green line appears. This represents a volatility band; movements above this line indicate extreme momentum shifts relative to historical volatility.

Details

The script calculates the absolute difference (gapping) between a Fast MA and a Slow MA. To provide context to this gap, it utilizes the ATR to create a dynamic threshold known as the "Dead Zone." This threshold represents a user-defined percentage of the ATR, ensuring that small, choppy movements do not trigger false signals.

The indicator offers flexibility through the choice of moving average types (SMA or EMA). It also includes a buffer MA, which acts as a secondary smoothing mechanism for the gap itself, and a Standard Deviation calculation that measures how many standard deviations the current gap represents relative to its recent history.

Settings

  • Source: Determines the price data used for the moving average calculations (default is Close).
  • Fast MA Length: Sets the period for the faster moving average.
  • Slow MA Length: Sets the period for the slower moving average.
  • ATR Dead Zone Length: Sets the period used to calculate the ATR for the threshold baseline.
  • Volatility Period: The period used for the histogram's signal line and standard deviation calculations.
  • Dead Zone Percentage: The percentage of ATR used to set the red "Dead Zone" line.
  • Standard Deviation Mode: Toggles the visibility and calculation of the Standard Deviation volatility band.
  • Deviation Multiplier: Sets the sensitivity of the Standard Deviation band.
  • MA Type: Allows the user to switch between Simple Moving Averages (SMA) and Exponential Moving Averages (EMA).
  • Color Histogram: Enables color-coding for the histogram based on trend direction.

FAQ

How do I interpret the red line in the indicator? The red line represents the "Dead Zone." If the histogram is below this line, the price movement is considered too small or noisy to be a reliable trend. Histogram bars breaking above this line suggest a potential trade entry.

What is the difference between the standard mode and Standard Deviation Mode? Standard mode uses a fixed percentage of ATR and a signal line for filtering. Standard Deviation Mode adds a green volatility band that adapts to the variance of the MA gap, helping to identify outliers in momentum.

How do I access this tool? 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.