# Double Exponential Moving Average (DEMA): Definition and Formula

## What Is a Double Exponential Moving Average (DEMA)?

The double exponential moving average (DEMA) is a [technical indicator](https://www.investopedia.com/terms/t/technicalindicator.asp) devised to reduce the lag in the results produced by a traditional moving average. Technical traders use it to lessen the amount of "[noise](https://www.investopedia.com/terms/n/noise.asp)" that can distort the movements on a price chart.

Like any [moving average](https://www.investopedia.com/terms/m/movingaverage.asp), the DEMA is used to indicate the trend in the price of a stock or other asset. By tracking its price over time, the trader can spot an uptrend—when the price moves above its average, or a downtrend—when the price moves below its average. When the price crosses the average, it may signal a sustained change in the trend.

As its name implies, the DEMA uses two [exponential moving averages](https://www.investopedia.com/terms/e/ema.asp) (EMAs) to eliminate [lag](https://www.investopedia.com/terms/l/laggingindicator.asp) in the charts.  

This variation on the moving average was introduced by Patrick Mulloy in a 1994 article "Smoothing Data With Faster Moving Averages" in _Technical Analysis of Stocks & Commodities_ magazine.

### Key Takeaways

*   The double exponential moving average (DEMA) is a variation on a technical indicator used to identify a potential uptrend or downtrend in the price of a stock or other asset.
*   A moving average tracks the average price of an asset over a period to spot the point at which it establishes a new trend, moving above or below its average price.
*   Some traders see a flaw in the standard moving average: It has a lag time that increases with the length of the period being charted.
*   The DEMA addresses this flaw, reducing lag time in the indicator.
*   The DEMA, therefore, has a stronger filter for the "noise" of irrelevant market action that can distort charted results.  
    

## The Formula for the Double Exponential Moving Average Is:

﻿ $\begin{aligned} &DEMA=2\times EMA_N\ -\ EMA\text{ of }EMA_N\\ &\textbf{where:}\\ &N=\text{Look-back period} \end{aligned}$﻿

## How to Calculate the Double Exponential Moving Average

There are just four steps to this calculation:  

1.  Choose any lookback period, such as five periods, 15 periods, or 100 periods.
2.  [Calculate the EMA](https://www.investopedia.com/ask/answers/122314/what-exponential-moving-average-ema-formula-and-how-ema-calculated.asp) for that period. This is EMA(n).
3.  Apply an EMA with the same lookback period to EMA(n). This produces a smoothed EMA.
4.  Multiply two times the EMA(n) and subtract the smoothed EMA.

![Image](https://www.investopedia.com/thmb/-yaE09r0_5cCRGBjQp7-eb02eFY=/1500x0/filters:no_upscale():max_bytes(150000):strip_icc()/dotdash_INV-final-Double-Exponential-Moving-Average-DEMA-May-2021-01-8d42622fd8be4a208625351be393826d.jpg)

*— Image by Sabrina Jiang © Investopedia 2021*

## What Does the Double Exponential Moving Average Tell You?

Although the indicator is called a double exponential moving average, the equation does not rely on using a double exponential smoothing factor. Instead, the equation doubles the EMA but then cancels out the lag by subtracting a smoothed EMA.

Because of the complication of the equation, DEMA calculations require more data than straight exponential moving average (EMA) calculations. However, spreadsheets and technical charting software can easily calculate DEMAs.  

> **Tip**
>
> The DEMA is used most often by day traders and swing traders. However, long-term investors may be better off using a standard moving average.

### Who Uses DEMAs and Why

DEMAs react quicker than traditional moving averages, so their users are more likely to be day traders or [swing traders](https://www.investopedia.com/terms/s/swingtrading.asp). Long-term investors, who trade less frequently, may find that a traditional moving average works better for them.

DEMAs are used primarily to spot an upward or downward trend in price and analyze its strength. Traders watch for a price to move above or below the DEMA. Some use multiple DEMAs with different lookback periods, watching for the DEMAs to cross each other.

Like any moving average, a DEMA also can be used to indicate price [support or resistance](https://www.investopedia.com/trading/support-and-resistance-basics/). That is, it can help identify the price point at which a trend will pause or even reverse.

### How to Read the DEMA

Reading the DEMA is straightforward. When the price of an asset is above the DEMA, and the DEMA is rising, it helps confirm an uptrend in price. When the price is below the DEMA, and the DEMA is falling, that helps confirm a downtrend.

As noted above, some traders display two or more DEMAs with different look-back periods on a single chart. Trade signals could be generated when these [lines cross](https://www.investopedia.com/terms/m/movingaverage.asp).

For example, a trader may buy if a 20-period DEMA crosses above a 50-period DEMA, or sell when the 20-period crosses back below the 50-period.

The DEMA may be less reliable when used to indicate potential support and resistance price points. A trader viewing a DEMA, or any moving average, to pinpoint potential support or resistance points should make sure that it has served this function in the past. If not, it likely won't in the future.

## Double Exponential Moving Average (DEMA) and the Triple Exponential Moving Average (TEMA)

As the names imply, the double EMA includes the EMA of an EMA. The [triple EMA](https://www.investopedia.com/terms/t/triple-exponential-moving-average.asp) (TEMA) has an even more complex calculation, involving an EMA of an EMA of an EMA.

The goal is still to reduce lag, and the triple EMA has even less lag than the double EMA.

> **Important**
>
> A DEMA, or any moving average, will likely be more reliable if a longer period of time is selected for tracking. This is because time diminishes the effects of "noise" in the markets.

## Limitations of the Double Exponential Moving Average

Moving averages can provide little or no insight during times when the price of an asset is [choppy](https://www.investopedia.com/terms/c/choppymarket.asp) or range-bound. No reliable trend can be identified at such times. The price will frequently cross back and forth across the DEMA.

In addition, the strength of the DEMA is its ability to reduce lag, but that can be its weakness in some circumstances.

The reduced lag gets the trader out quicker, reducing losses. Yet reduced lag can also encourage [overtrading](https://www.investopedia.com/terms/o/overtrading.asp) by providing too many signals. The indicator may tell a trader to sell when the price makes a minor move, thus missing out on a greater opportunity if the trend continues.

The DEMA is best used in conjunction with other forms of analysis, such as [price action](https://www.investopedia.com/terms/p/price-action.asp) analysis and fundamental analysis.

## What Is the Difference Between a Simple Moving Average and DEMA?

The double exponential moving average may be best described as a "smoothed" simple moving average. A standard moving average displays a lag time that increases with the amount of time being charted. The double exponential moving average seeks to shorten that lag time to a consistent level. Overall, it gives the trader an earlier warning of a change in the direction of an asset's price.

## What Is the Most Accurate Moving Average?

The accuracy of a moving average depends greatly on the length of the period being tracked. The [most commonly used moving average periods](https://www.investopedia.com/ask/answers/122414/what-are-most-common-periods-used-creating-moving-average-ma-lines.asp) are 50-day, 100-day, and 200-day moving averages. Historically speaking, the longer the term, the more accurate the indicator. This is because the impact of market day-to-day "noise" diminishes over time—and it takes time for a trend to clarify.

  

## How Do You Use a Double Exponential Moving Average?

Like any moving average, the double exponential moving average is designed to trigger a buy or sell signal based on the price movements over time of a given asset. The signal is triggered by a sustained change upwards or downwards of the asset's price.

  

  

## What Is MACD DEMA?

The [moving average convergence/divergence](https://www.investopedia.com/terms/m/macd.asp) (MACD) is an indicator that seeks to add greater insight to the moving average by determining the relative momentum of the price movement. The MACD is calculated by subtracting the 26-period EMA from the 12-period EMA. The result may help a trader determine whether a price trend appears to be gaining or losing strength. Some traders use MACD in combination with the DEMA rather than with a standard moving average.

> **Article Sources**
>
> 1.  Traders.com. "[Smoothing Data With Faster Moving Averages](http://technical.traders.com/archive/archivelogin.asp?file=/V12C01SMOOTHI.pdf&src=SC)."
>     
> 2.  Trading View. "[DEMA Strategy with MACD](https://www.tradingview.com/script/xeqJN1KH-DEMA-Strategy-with-MACD/)."