
Double Exponential Moving Average (DEMA) and Calculation
The double exponential moving average (DEMA) is a technical indicator introduced by Patrick Mulloy in his January 1994 article "Smoothing Data With Faster Moving Averages" in _Technical Analysis of Stocks & Commodities_ magazine. The DEMA can be used in the same way as other moving averages, as long as the trader understands the indicator will react quicker and contain less information since it's been smoothed twice. Less lag is not always a good thing because lag helps filter out noise. A longer-term time frame DEMA, e.g. over 100 periods, will be slower to react than a shorter-term time frame DEMA, of e.g. 20 periods. The double exponential moving average (DEMA) is one that responds more quickly to near-term price changes than a normal exponential moving average (EMA). D E M A \= 2 × E M A N − E M A of E M A N where: \\begin{aligned} &DEMA=2\\times EMA\_N\\ -\\ EMA\\text{ of }EMA\_N\\\\ &\\textbf{where:}\\\\ &N=\\text{Look-back period} \\end{aligned} DEMA\=2×EMAN − EMA of EMANwhere: 1. Choose any lookback period, such as five periods, 15 periods, or 100 periods. Traders may watch for price to cross the DEMA, or DEMAs to cross each other if using multiple DEMAs (with different lookback periods).

What Is a Double Exponential Moving Average (DEMA)?
The double exponential moving average (DEMA) is a technical indicator introduced by Patrick Mulloy in his January 1994 article "Smoothing Data With Faster Moving Averages" in Technical Analysis of Stocks & Commodities magazine. The purpose is to reduce the amount of noise present in price charts used by technical traders.
The DEMA uses two exponential moving averages (EMAs) to eliminate lag, as some traders view lag as a problem. The DEMA is used in a similar way to traditional moving averages (MA). The average helps confirm uptrends when the price is above the average, and helps confirm downtrends when the price is below the average. When the price crosses the average that may signal a trend change. Moving averages are also used to indicate areas of support or resistance.




The Formula for the Double Exponential Moving Average Is:
D E M A = 2 × E M A N − E M A of E M A N where: \begin{aligned} &DEMA=2\times EMA_N\ -\ EMA\text{ of }EMA_N\\ &\textbf{where:}\\ &N=\text{Look-back period} \end{aligned} DEMA=2×EMAN − EMA of EMANwhere:
How to Calculate the Double Exponential Moving Average
- Choose any lookback period, such as five periods, 15 periods, or 100 periods.
- Calculate the EMA for that period, this is EMA(n).
- Apply an EMA with the same lookback period to EMA(n). This gives a smoothed EMA.
- Multiply two times the EMA(n) and subtract the smoothed EMA.
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 EMA calculations. However, modern spreadsheets and technical-charting packages can easily calculate DEMAs.
DEMAs react quicker than traditional MAs, which means they are more likely to be used by day traders and swing traders. Investors may also use them, but since many long-term investors prefer to be less active in the assets they hold, traditional MAs may work better.
DEMAs are used in the same ways as traditional MAs. DEMAs can also be used to analyze the strength of an uptrend or a downtrend in price. Traders may watch for price to cross the DEMA, or DEMAs to cross each other if using multiple DEMAs (with different lookback periods). The DEMA may also provide support or resistance.
Mainly, traders watch price relative to the DEMA to assess the trend direction and trend strength. When the price is above the DEMA, and the DEMA is rising, it helps confirm an uptrend. When the price is below the DEMA, and the DEMA is falling, that helps confirm a downtrend.
Based on the above, if the price moves above the DEMA from below that could signal the downtrend is over and the price is starting to rise. If the price drops below the DEMA from above, that could signal the uptrend is over and lower prices are forthcoming.
Traders could also two (or more) DEMAs with different look-back periods on their chart. Trade signals could be generated when these lines cross. For example, a trader may buy when a 20-period DEMA crosses above a 50-period DEMA. They would sell when the 20-period crosses back below the 50-period. This is a simplified example, but a DEMA crossover is another tactic traders can use.
Finally, traders can use the DEMA to mark potential support and resistance areas. Since the DEMA reacts quickly, this may not always be effective. If viewing a DEMA, or any moving average, as potential support or resistance, it is important to make sure that the MA has actually provided support or resistance in the past. If the MA has not served this function in the past, it likely won't in the future.
The Difference Between the 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 (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.
Limitations of the Double Exponential Moving Average (DEMA)
Moving averages tend to work well in trending markets, but provide little insight when the price is choppy or range-bound. During such times, the price will frequently cross back and forth across the MA or DEMA. The short-lived price moves are unlikely to result in profitable trade signals.
Reducing lag can be good in some circumstances, like when an actual price reversal occurs. The reduced lag gets the trader out quicker, reducing their losses. Yet reduced lag can also result in overtrading. This is when an indicator provides too many signals. For example, the indicator tells a trader to sell when the price makes only a minor move against them. The trader sells only to watch the price continue in its original direction. Sometimes lag is good, and sometimes it isn't. It depends on what the trader wants from an indicator. It is up to the trader to find a balance and determine how much lag works for them.
The DEMA is best used in conjunction with other forms of analysis, such as price action analysis, fundamental analysis, and other technical indicators.
Related terms:
Choppy Market
A choppy market refers to a market condition where prices swing up and down considerably, either in the short term, or for an extended period of time. read more
Day Trader
Day traders execute short and long trades to capitalize on intraday market price action, which result from temporary supply and demand inefficiencies. read more
Exponential Moving Average (EMA)
An exponential moving average (EMA) is a type of moving average that places a greater weight and significance on the most recent data points. read more
Guppy Multiple Moving Average (GMMA)
The Guppy Multiple Moving Average (GMMA) is a technical indicator used to anticipate a breakout trend in the price of an asset. read more
Investor
Any person who commits capital with the expectation of financial returns is an investor. A wide variety of investment vehicles exist including (but not limited to) stocks, bonds, commodities, mutual funds, exchange-traded funds, options, futures, foreign exchange, gold, silver, and real estate. read more
Keltner Channel
A Keltner Channel is a set of bands placed above and below an asset's price. The bands are based on volatility and can aid in determining trend direction and provide trade signals. read more
Lagging Indicator
A lagging indicator is an observable or measurable factor that changes some time after the economic, financial, or business variable it is correlated with changes. read more
Moving Average (MA)
A moving average (MA) is a technical analysis indicator that helps smooth out price action by filtering out the “noise” from random price fluctuations. read more
Moving Average Ribbon
A moving average ribbon is a series of moving averages of different lengths plotted on the same chart to show support and resistance levels, as well as trend strength and reversals. read more