Skip to content
Menu
Finabase Learn

Glossary

Double exponential moving average (DEMA)

A low-lag moving average equal to twice an EMA minus an EMA of that EMA, published by Patrick Mulloy in 1994 to track price more closely.

The double exponential moving average (DEMA) is a moving average built to remove most of the lag of an ordinary exponential moving average. Patrick Mulloy published it in January 1994. Despite the name, it is not an EMA applied twice. It is twice an EMA minus an EMA of that EMA, a trick that estimates how far the EMA is trailing price and adds that distance back.

The cost of less lag

Real prices do not move in straight lines. When a trend turns, the DEMA keeps projecting the old direction for a few bars and overshoots, landing above the highs or below the lows. Because it hugs price, it also crosses price more often in sideways markets, which means more whipsaws for crossover rules. Short-term traders accept that for speed; others prefer a slower line or an adaptive one such as the Kaufman adaptive moving average.

Sources and further reading

  1. Patrick G. Mulloy, “Smoothing Data with Faster Moving Averages,” Technical Analysis of Stocks & Commodities, vol. 12, no. 1 (January 1994)
  2. TA-Lib — DEMA function reference