All indicators

L2 Double EMA Convergence and Divergence (DEMACD)

Jan 21, 2024

Static chart image
SignalsOscillatorsDivergencesMoving Averages

The L2 Double EMA Convergence and Divergence (DEMACD) indicator provides a faster, more responsive alternative to the traditional MACD by utilizing Double Exponential Moving Averages (DEMA) to minimize lag and highlight trend shifts more effectively.

Usage

The Usage section describes how the script can be used to identify momentum and potential trend reversals:

  • Trend Confirmation: Traders can observe the relationship between the DIF (red line) and the DEA (gray line). When the DIF is above the DEA, it suggests a bullish trend; when below, a bearish trend.
  • Crossover Signals: Bullish entry signals are generated when the DIF line crosses above the DEA line, often highlighted by a "Buy" label. Conversely, a bearish signal occurs when the DIF crosses below the DEA, marked by a "Sell" label.
  • Histogram Analysis: The DEMACD histogram indicates momentum strength. Green bars represent strong bullish momentum, red bars represent strong bearish momentum, and yellow bars indicate potential momentum exhaustion or a slowdown in the current trend.
  • Divergence: Discrepancies between price action and the DEMACD peaks can signal potential trend reversals, similar to standard MACD interpretation.

Details

The L2 Double EMA Convergence and Divergence (DEMACD) builds upon the work of Patrick Mulloy and Gerald Appel. While the traditional MACD uses standard EMAs, which can introduce significant lag, this version utilizes DEMA logic and a custom smoothed price source.

The calculation follows these steps:

  1. Average Price: A weighted average of the open, high, low, and close.
  2. Day Line: A fast, responsive line calculated using a modified EMA approach on the average price.
  3. Main Trend Line: A slow line derived from a double EMA of the closing price.
  4. DIF & DEA: The DIF is the difference between the Day Line and Main Trend Line, while the DEA is a smoothed EMA of the DIF.
  5. DEMACD Histogram: The final value is the doubled difference between the DIF and DEA, providing the familiar histogram visualization.

Settings

  • EMA Length: Determines the period for the fast "Day Line" calculation.
  • DEMA Length: Sets the period for the "Main Trend Line," affecting the indicator's overall sensitivity to long-term trends.
  • Smooth Length: Controls the smoothing period for the DEA (Signal) line.

FAQ

How do I access L2 Double EMA Convergence and Divergence (DEMACD)?

You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.

What makes this different from a standard MACD?

This indicator uses Double Exponential Moving Averages (DEMA) instead of standard EMAs, which significantly reduces the time delay between a price change and the indicator's reaction.

Can I use this for day trading?

Yes, due to its lag-reduction properties, it is particularly effective for shorter timeframes where catching trend shifts early is critical, though it can be applied to any timeframe.

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.