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

  1. Pick a look-back period N

    StockCharts uses 20 periods as its default.2 Shorter periods react faster and longer ones more slowly.3

  2. 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.

  3. Calculate EMA2

    EMA2 is an EMA of the EMA1 values, using the same period.3

  4. Combine them

    DEMA = (2 × EMA1) − EMA2.2 MetaTrader writes the same thing as the EMA plus an EMA of the gap between price and the EMA.4

  5. Read the direction

    DEMA is read like a normal EMA, to confirm a Trend or spot a change in it.2 Price above the line supports an uptrend and price below it a downtrend.3

  6. Use crossovers with care

    The common signals are price crossing DEMA, or a short DEMA crossing a longer one, such as 20 over 50.2 These crosses usually come earlier than the matching EMA crosses.2

Worked examples

Example 1 — One update of a 3-period DEMA

Formula

A 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.

Example 1 — One update of a 3-period DEMA — calculation
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 × EMA12 × $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

Lag

Using the numbers from Example 1, compare how far each line sits below the $64.00 close.

Example 2 — How much lag was removed — calculation
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

Whipsaw

A 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.

Example 3 — Fast signals in a sideways market — calculation
Losses4 × −$0.40 = −$1.60
Gains2 × +$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

AspectFormulaSpeed
EMAEach value builds on the previous EMA5Less delay than an SMA of the same period5
DEMA(2 × EMA1) − EMA22Crosses earlier than a normal EMA2
TEMA(3 × EMA1) − (3 × EMA2) + EMA36Crosses earlier than DEMA6

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

  • Sits closer to price than a normal EMA of the same period.2
  • Crossovers usually come earlier than EMA crossovers.2
  • Uses only one setting, the look-back period.3
  • Can exit a trade sooner when price reverses.3

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

(2 × EMA1) − EMA2 can be written as EMA1 + (EMA1 − EMA2). In a rising market EMA2 lags further than EMA1, so the bracket is positive and lifts the line towards price.2 MetaTrader describes the same step as adding an EMA of the error between price and the EMA.4

Warm-up and the next step

Advanced

EMA2 needs a run of EMA1 values before it means anything, so the first values of a DEMA after a chart starts are less reliable than later ones. The triple version, TEMA, applies the same idea once more and reacts even faster.6

Common mistakes

  1. Thinking DEMA is an EMA of an EMA

    The EMA of an EMA (EMA2) is only one ingredient. DEMA is twice EMA1 minus EMA2.2

  2. Reusing EMA settings unchanged

    DEMA turns faster, so signals tuned for EMAs may fire too often.2

  3. Trading every cross in a range

    In choppy markets moving averages give little information and many false crosses.3 See Whipsaw.

  4. Using it alone

    StockCharts suggests combining DEMA with other indicators and analysis.2

Check your understanding

Test yourself before moving on. Each answer comes with an explanation.

Q1EMA1 = $45.00 and EMA2 = $44.20. What is DEMA?
Q2What is EMA2 in the DEMA formula?

Key points to remember

  1. DEMA was introduced by Patrick Mulloy in 1994.
  2. DEMA = (2 × EMA1) − EMA2, where EMA2 is an EMA of EMA1.
  3. It sits closer to price than a normal EMA and crosses earlier.
  4. Faster signals bring more false signals in choppy markets.
  5. Read it like an EMA, and confirm its signals with other tools.

Frequently asked questions

Is DEMA better than EMA?

It is faster, not automatically better. DEMA crosses earlier than an EMA, which helps in trends, but it also reacts to small moves and can lead to overtrading.3

What period should I use for DEMA?

StockCharts uses 20 by default.2 Short-term traders tend to favour DEMA, while long-term investors often stick with traditional averages.3

What is the difference between DEMA and TEMA?

DEMA combines a single and a double-smoothed EMA. TEMA adds a triple-smoothed EMA as well: (3 × EMA1) − (3 × EMA2) + EMA3, which sits even closer to price.6

Further learning

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.

  1. StockCharts ChartSchool. Moving Averages - Simple and Exponential (opens in a new tab) Checked .
  2. StockCharts ChartSchool. Double Exponential Moving Average (DEMA) (opens in a new tab) Checked .
  3. TradingView. Double EMA – Help Center (opens in a new tab) Checked .
  4. MetaQuotes (MetaTrader 5 Help). Double Exponential Moving Average (opens in a new tab) Checked .
  5. Fidelity. Exponential Moving Average (EMA) (opens in a new tab) Checked .
  6. 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.