Double Exponential Moving Average (DEMA)DEMA
The double exponential moving average, created by Patrick Mulloy, takes twice an EMA minus an EMA of that EMA. This removes much of the lag of a normal EMA, so it turns faster but also gives more false signals.
A normal exponential moving average already reacts faster than a simple one, but it still trails price.1 Patrick Mulloy introduced the double exponential moving average in 1994 in Technical Analysis of Stocks & Commodities magazine to cut that delay further.2 Despite its name, DEMA is not an EMA applied twice: it combines a single EMA with an EMA of that EMA so that most of the lag cancels out.2 This entry covers the formula, a step-by-step calculation, how traders read it and why its speed is both its strength and its weakness.
- Category
- Indicators and Tools
- Reading time
- 6 min
- Also called
- Double EMA
- Updated
DEMA in plain words
Every EMA sits a little behind price. If you smooth that EMA once more, the second line sits even further behind. The gap between the two lines tells you roughly how much lag the smoothing adds.2
DEMA takes the first EMA and pushes it forward by that gap: two times the EMA, minus the EMA of the EMA.3 The result is still smooth but sits closer to the price bars than either of the two EMAs it is built from.2
How to build and read DEMA, step by step
Calculate EMA1
EMA1 is a normal exponential moving average of price over N periods.2 Its multiplier is 2 ÷ (N + 1), so a 3-period EMA uses 0.5.1 See Moving Average.
Calculate EMA2
EMA2 is an EMA of the EMA1 values, using the same period.3
Worked examples
Example 1 — One update of a 3-period DEMA
FormulaA hypothetical stock closes at $64.00. Yesterday’s EMA1 was $60.00 and yesterday’s EMA2 was $59.00. A 3-period average uses the multiplier 2 ÷ (3 + 1) = 0.5.
| EMA1 gap | $64.00 − $60.00 = $4.00 |
| New EMA1 | $60.00 + 0.5 × $4.00 = $62.00 |
| EMA2 gap | $62.00 − $59.00 = $3.00 |
| New EMA2 | $59.00 + 0.5 × $3.00 = $60.50 |
| 2 × EMA1 | 2 × $62.00 = $124.00 |
| DEMA = 2 × EMA1 − EMA2 | $124.00 − $60.50 = $63.50 |
EMA2 is fed by EMA1, not by price, so it is always calculated second. The final DEMA of $63.50 sits much closer to the $64.00 close than EMA1 does.
Example 2 — How much lag was removed
LagUsing the numbers from Example 1, compare how far each line sits below the $64.00 close.
| EMA1 lag | $64.00 − $62.00 = $2.00 |
| EMA2 lag | $64.00 − $60.50 = $3.50 |
| DEMA lag | $64.00 − $63.50 = $0.50 |
| Gap added back | $62.00 − $60.50 = $1.50 |
DEMA equals EMA1 plus the $1.50 gap between EMA1 and EMA2. That correction cut the distance to price from $2.00 to $0.50 in this hypothetical rising market.
Example 3 — Fast signals in a sideways market
WhipsawA hypothetical stock moves sideways for six weeks. A trader buys every close above a short DEMA and sells every close below it. Six round trips result: four lose $0.40 a share and two make $0.55.
| Losses | 4 × −$0.40 = −$1.60 |
| Gains | 2 × +$0.55 = +$1.10 |
| Net per share | −$1.60 + $1.10 = −$0.50 |
Less lag means the line reacts to small moves, which can lead to overtrading in choppy markets.3 A trend filter or a second indicator helps decide which signals to take.2
DEMA compared with related averages
How traders use DEMA
Trend confirmation
Price holding above a rising DEMA supports an uptrend; price below a falling one supports a downtrend.3 See Trend Following.
Earlier crossovers
A short DEMA crossing a longer DEMA, such as 20 over 50, is read as bullish, and it tends to come before the matching EMA cross.2
Support and resistance
Like other moving averages, DEMA can mark zones where price pauses or turns.3 See Support and Resistance.
Smoothing other indicators
DEMA can be applied to the values of another indicator, not only to price.4 See Technical Indicator.
Advantages and disadvantages
Advantages
Disadvantages
- More signals and reactions to small moves can lead to Overtrading.3
- Gives little useful information when prices are choppy.3
- Strategies built for slower averages may need new settings.2
- Long-term investors often find traditional averages more useful.2
Going deeper
Read as far as you need. Each level builds on the one before it.
An EMA with a correction
Beginner
Think of DEMA as an EMA that has been nudged towards price. Read it the same way you would read an EMA: up is bullish, down is bearish, and crosses mark possible changes.2
Why the formula reduces lag
Intermediate
Common mistakes
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- DEMA was introduced by Patrick Mulloy in 1994.
- DEMA = (2 × EMA1) − EMA2, where EMA2 is an EMA of EMA1.
- It sits closer to price than a normal EMA and crosses earlier.
- Faster signals bring more false signals in choppy markets.
- Read it like an EMA, and confirm its signals with other tools.
Frequently asked questions
Is DEMA better than EMA?
What period should I use for DEMA?
What is the difference between DEMA and TEMA?
Further learning
- Moving Average
Simple and exponential averages, the base DEMA is built on.
- Triple Exponential Moving Average (TEMA)
The same idea taken one step further.
- Hull Moving Average (HMA)
Another low-lag average built from weighted averages.
- Whipsaw
What happens to fast signals in sideways markets.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- StockCharts ChartSchool. Moving Averages - Simple and Exponential (opens in a new tab) Checked .
- StockCharts ChartSchool. Double Exponential Moving Average (DEMA) (opens in a new tab) Checked .
- TradingView. Double EMA – Help Center (opens in a new tab) Checked .
- MetaQuotes (MetaTrader 5 Help). Double Exponential Moving Average (opens in a new tab) Checked .
- Fidelity. Exponential Moving Average (EMA) (opens in a new tab) Checked .
- StockCharts ChartSchool. Triple Exponential Moving Average (TEMA) (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.