Double Exponential Moving Average (DEMA)

DEMA
Indicator

TrendOn the price chartFree on ChartLabs

DEMA doubles an EMA and subtracts an EMA of that EMA. The result follows price with less delay than a plain EMA of the same length.

Introduced by Patrick Mulloy in 1994. Reviewed by the ChartLabs team, updated Nov 2026.

Example market1hIndicatorsAtlas AIDEMAchartlabs.co/charts
Atlas reads it

Price is under a falling DEMA 9. Short-term trend points down.

DEMA 9 64,957.2 · Close 64,717.8

Atlas reads it

Price is under a falling DEMA 9. Short-term trend points down.

DEMA 9 64,957.2 · Close 64,717.8

Illustration on simulated data.

Double Exponential Moving Average (DEMA)What is the DEMA indicator?

DEMA draws one green line on the price chart. By default it uses a length of 9 on the close.

An EMA always trails price a little. DEMA estimates that trailing gap by smoothing the EMA once more, then adds the gap back: two times the EMA minus the EMA of the EMA. The line sits closer to the latest prices than either average on its own.

Despite the name, DEMA is not an EMA applied twice. It is a lag-reduced EMA. It turns sooner than an EMA of 9 and gives fewer bars of delay after a turn, at the cost of a little more noise.

DEMA or TEMA?

TEMA takes the same idea one step further with a third EMA. It is faster still and overshoots more readily.

Warm-up

Each EMA starts from a plain average of its first 9 values, so the first DEMA value appears on the 17th bar.

DEMA signalsFive patterns to know.

1Bullish

Price above a rising DEMA

Closes stay above the line while it slopes up. The short-term trend is up.

2Bearish lean

Close crosses below

After a run above the line, price closes under it. Short-term momentum is turning down.

3Bullish lean

Close crosses above

After a run below, price closes above the line. Many traders want the DEMA to turn up too.

4Bullish

Pullback that holds

Price dips to a rising DEMA and closes back above it.

Flat line, many crosses
5Inconclusive

Flat line, many crosses

The DEMA goes sideways and price crosses it back and forth. There is no trend.

DEMA formulaHow it is calculated.

E1=EMAN(close)E2=EMAN(E1)DEMA=2×E1−E2
STEP 1

First EMA

Take a 9-bar EMA of the close, started from a plain average of the first 9 closes.

STEP 2

EMA of the EMA

Smooth that EMA again with another 9-bar EMA. It trails further behind price.

STEP 3

Add back the lag

DEMA = 2 x the first EMA minus the second. The gap between the two EMAs is added back to the first.

DEMA settingsEvery setting, explained.

SettingDefaultRangeWhat it changes
Length91 to 10,000 (typical 9 to 50)The length of both EMAs. Longer is smoother and slower.
SourceCloseAny price, or volumeWhich values feed the calculation.
LineGreen #43A047, 1 pxAny colour and widthColour and width of the line.
Setting
Length
Default
9
Range
1 to 10,000 (typical 9 to 50)
What it changes
The length of both EMAs. Longer is smoother and slower.
Setting
Source
Default
Close
Range
Any price, or volume
What it changes
Which values feed the calculation.
Setting
Line
Default
Green #43A047, 1 px
Range
Any colour and width
What it changes
Colour and width of the line.
941 price crosses in view
70,22066,83563,44960,06364,803.7

Drag to see how the setting changes the lines and how many signals you get. Illustration on simulated data.

DEMA strategiesUse it in 3 setups.

Pullback to a rising DEMA

WhileDEMAslopes upifprice dips to it and closes above

Traders often wait for the close back above the line, so a dip that keeps falling does not count.

Fast DEMA crosses a slower one

IfDEMA 9crosses aboveDEMA 21exit whenit crosses back

Two DEMAs filter some of the noise of price crossing a single line. The 21 is drawn here in orange.

Close above, with the slope

Ifprice closes aboveDEMAandDEMAis turning up

Asking for the line itself to turn removes many crosses in flat markets.

Test a rule in the Strategy TesterFree with 1 year of history. Past results do not guarantee future results.

DEMA mistakesCommon mistakes.

Flat line, many crosses

Trading every cross in a range

A fast line gets crossed often when price goes sideways. Check the slope first.

Cross comes after the low

Expecting no delay

DEMA cuts lag, it does not remove it. The cross still comes after the low.

Far above the line

Chasing far above the line

When price runs far from the DEMA, it often drifts back toward it before the trend resumes.

DEMA combinationsPair it with these.

DEMA FAQQuestions traders ask.

What are the default DEMA settings?

Length 9 on the close, drawn in green, the same as TradingView.

Is DEMA an EMA applied twice?

No. An EMA of an EMA lags more. DEMA uses that double-smoothed line to measure the lag and adds it back: 2 x EMA minus EMA of EMA.

DEMA or EMA?

DEMA turns sooner after a change in direction. The EMA is steadier. Pick by how quickly you want the line to react.

DEMA or TEMA?

TEMA adds a third EMA and reacts faster still. DEMA sits between the EMA and TEMA in speed and noise.

Why does DEMA start later on the chart?

Both EMAs need their own warm-up. With length 9 the first value appears after 17 bars.

What is the best DEMA length?

9 is the default. 20 and 50 are common for swing trading. Longer lengths are smoother.

Does DEMA work on crypto?

Yes. It works on any market with prices.

Is DEMA leading or lagging?

Lagging. It is built from past prices, though with less delay than an EMA of the same length.

Does DEMA repaint?

No. Values on closed bars never change. The live bar moves until it closes.

Who created DEMA?

Patrick Mulloy described it in Technical Analysis of Stocks & Commodities in 1994.

Related indicatorsMore trend tools.

All trend indicators

Try DEMA on a live chart.
Free. No download.

Works in your browser and on iPhone too.

Example market1h
DEMA (9, close)