Double Exponential Moving Average (DEMA)

Introduction to DEMA

The Double Exponential Moving Average (DEMA) is a powerful technical indicator used in financial markets to analyze price trends with reduced lag compared to traditional moving averages. Developed by Patrick Mulloy and introduced in the January 1994 issue of Technical Analysis of Stocks & Commodities magazine, DEMA aims to provide traders with faster and more accurate signals for price movements. By placing more weight on recent price data, DEMA is particularly valuable for short-term traders, such as day traders and swing traders, who need to respond quickly to market changes. This tutorial explores the calculation, applications, and limitations of DEMA to help you integrate it into your trading strategy.

How to Calculate DEMA

The DEMA is calculated using a combination of two Exponential Moving Averages (EMAs), which makes it more responsive than a standard moving average. The formula for DEMA is:

\[ \text{DEMA} = 2 \times \text{EMA} – \text{EMA of EMA} \]

Where:

  • EMA: The Exponential Moving Average of the price over a specified look-back period.
  • EMA of EMA: The Exponential Moving Average applied to the initial EMA.

To calculate DEMA, follow these steps:

  1. Select a look-back period (e.g., 10, 20, or 50 days).
  2. Calculate the EMA of the price for the chosen period using the formula: \[ \text{EMA}_t = \alpha \times \text{Price}_t + (1 – \alpha) \times \text{EMA}_{t-1} \], where \(\alpha = \frac{2}{\text{N} + 1}\) and N is the number of periods.
  3. Calculate the EMA of the result from step 2 (EMA of EMA).
  4. Compute DEMA using the formula: \[ \text{DEMA} = 2 \times \text{EMA} – \text{EMA of EMA} \].

Unlike traditional moving averages, DEMA requires \(2 \times \text{period} – 1\) samples to produce values, compared to just the period samples needed for a regular EMA, due to the double smoothing process.

DEMA Calculation Example

To illustrate how DEMA is calculated, consider a stock with the following closing prices over five days: 10, 11, 12, 13, and 14. We’ll use a 3-day look-back period for the EMA.

Step 1: Calculate the EMA

The smoothing factor is \(\alpha = \frac{2}{3 + 1} = 0.5\). Assuming the first EMA equals the first price:

  • EMA1 = Price1 = 10
  • EMA2 = 0.5 × 11 + 0.5 × 10 = 10.5
  • EMA3 = 0.5 × 12 + 0.5 × 10.5 = 11.25
  • EMA4 = 0.5 × 13 + 0.5 × 11.25 = 12.125
  • EMA5 = 0.5 × 14 + 0.5 × 12.125 = 13.0625

Step 2: Calculate the EMA of EMA

Using the same smoothing factor (\(\alpha = 0.5\)):

  • EMA_EMA1 = EMA1 = 10
  • EMA_EMA2 = 0.5 × 10.5 + 0.5 × 10 = 10.25
  • EMA_EMA3 = 0.5 × 11.25 + 0.5 × 10.25 = 10.75
  • EMA_EMA4 = 0.5 × 12.125 + 0.5 × 10.75 = 11.4375
  • EMA_EMA5 = 0.5 × 13.0625 + 0.5 × 11.4375 = 12.25

Step 3: Calculate DEMA

Using the formula \( \text{DEMA} = 2 \times \text{EMA} – \text{EMA of EMA} \):

  • DEMA1 = 2 × 10 – 10 = 10
  • DEMA2 = 2 × 10.5 – 10.25 = 10.75
  • DEMA3 = 2 × 11.25 – 10.75 = 11.75
  • DEMA4 = 2 × 12.125 – 11.4375 = 12.8125
  • DEMA5 = 2 × 13.0625 – 12.25 = 13.875

The table below summarizes the calculations:

DayPriceEMAEMA of EMADEMA
110101010
21110.510.2510.75
31211.2510.7511.75
41312.12511.437512.8125
51413.062512.2513.875

Notice that the DEMA values (e.g., 13.875 on day 5) are closer to the actual prices (14 on day 5) than the EMA (13.0625), demonstrating DEMA’s reduced lag. For comparison, a 3-day Simple Moving Average (SMA) on day 5 would be (12 + 13 + 14) / 3 = 13, which lags further behind the price.

To visualize DEMA, you can plot it on a price chart alongside the price, EMA, and SMA. The DEMA line typically follows the price more closely, providing earlier signals for trend changes. [Insert chart showing DEMA, EMA, and price here for visual reference.]

Use Cases of DEMA in Trading

The DEMA is a versatile tool in technical analysis, offering several applications for traders. Below are the primary use cases:

  1. Trend Identification: A rising DEMA indicates a potential uptrend, suggesting that prices are likely to increase, while a falling DEMA signals a downtrend, indicating potential price declines. For example, if a stock’s price is above its DEMA and the DEMA is sloping upward, it may confirm bullish momentum.
  2. Crossover Strategies: Traders often use two DEMAs with different periods, such as a 20-day DEMA and a 50-day DEMA. A buy signal is generated when the shorter-term DEMA crosses above the longer-term DEMA (a “golden cross”), and a sell signal when it crosses below (a “death cross”). This strategy is popular for capturing trend changes.
  3. Support and Resistance: DEMA can act as dynamic support or resistance levels. During an uptrend, prices may bounce off the DEMA line as support, while in a downtrend, it may act as resistance. Traders watch for price interactions with the DEMA to make entry or exit decisions.
  4. Confirmation Tool: DEMA is often used alongside other indicators, such as the Moving Average Convergence Divergence (MACD), to confirm trend directions or reversals. For instance, a trader might use DEMA to confirm a MACD signal, increasing confidence in the trade.

DEMA’s reduced lag makes it particularly suitable for short-term trading strategies, but long-term investors may also use it for trend confirmation, especially with longer look-back periods like 50-day or 200-day DEMAs.

Limitations of DEMA

While DEMA offers significant advantages, it’s not without limitations. Traders should be aware of the following:

  • Choppy Markets: In sideways or volatile markets, DEMA’s sensitivity can lead to false signals, causing traders to enter or exit positions prematurely. It performs best in trending markets.
  • Overtrading Risk: Due to its responsiveness, DEMA may generate frequent trading signals, potentially leading to overtrading and higher transaction costs. Traders should use risk management strategies to mitigate this.
  • Need for Complementary Analysis: DEMA is most effective when combined with other technical indicators (e.g., RSI, MACD) and fundamental analysis. Relying solely on DEMA may lead to incomplete market insights.

To maximize its effectiveness, traders should test DEMA in different market conditions and integrate it into a broader trading plan. For example, combining DEMA with price action analysis or volume indicators can enhance its reliability.

DEMA vs. Other Moving Averages

Compared to other moving averages, DEMA stands out for its reduced lag. Here’s how it compares:

IndicatorLagResponsivenessBest Use Case
Simple Moving Average (SMA)HighLowLong-term trend analysis
Exponential Moving Average (EMA)ModerateModerateMedium-term trading
Double Exponential Moving Average (DEMA)LowHighShort-term trading
Triple Exponential Moving Average (TEMA)Very LowVery HighUltra-short-term trading

DEMA strikes a balance between smoothness and responsiveness, making it ideal for traders seeking timely signals without excessive noise. However, for even less lag, some traders may explore the Triple Exponential Moving Average (TEMA), which extends DEMA’s concept by incorporating an EMA of the EMA of the EMA.

Practical Tips for Using DEMA

To effectively use DEMA in your trading:

  • Choose Appropriate Periods: Shorter periods (e.g., 5-20 days) are better for day trading, while longer periods (e.g., 50-200 days) suit swing or position trading.
  • Test Your Strategy: Backtest DEMA-based strategies on historical data to assess performance in different market conditions.
  • Use on Trading Platforms: Most platforms, like MetaTrader 5 ([MetaTrader 5](https://www.metatrader5.com/en/terminal/help/indicators/trend_indicators/dema)) or TradingView ([TradingView DEMA](https://www.tradingview.com/scripts/dema/)), include DEMA as a built-in indicator, making it easy to apply to price charts.
  • Combine with Other Tools: Pair DEMA with indicators like RSI or Bollinger Bands to filter out false signals and improve decision-making.

Conclusion

The Double Exponential Moving Average (DEMA) is a valuable tool for traders seeking to minimize lag in their technical analysis. By understanding its calculation, applications, and limitations, traders can leverage DEMA to identify trends, generate trading signals, and enhance their market strategies. While it excels in trending markets, its sensitivity requires careful use in choppy conditions. By combining DEMA with other indicators and sound risk management, traders can make more informed decisions and navigate the complexities of financial markets effectively.

References

Sign-up now to get a 50% discount code and Free Trial.