DEMA
Indicator
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.
Price is under a falling DEMA 9. Short-term trend points down.
DEMA 9 64,957.2 · Close 64,717.8
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.
Price above a rising DEMA
Closes stay above the line while it slopes up. The short-term trend is up.
Close crosses below
After a run above the line, price closes under it. Short-term momentum is turning down.
Close crosses above
After a run below, price closes above the line. Many traders want the DEMA to turn up too.
Pullback that holds
Price dips to a rising DEMA and closes back above it.
Flat line, many crosses
The DEMA goes sideways and price crosses it back and forth. There is no trend.
DEMA formulaHow it is calculated.
First EMA
Take a 9-bar EMA of the close, started from a plain average of the first 9 closes.
EMA of the EMA
Smooth that EMA again with another 9-bar EMA. It trails further behind price.
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.
| Setting | Default | Range | What it changes |
|---|---|---|---|
| Length | 9 | 1 to 10,000 (typical 9 to 50) | The length of both EMAs. Longer is smoother and slower. |
| Source | Close | Any price, or volume | Which values feed the calculation. |
| Line | Green #43A047, 1 px | Any colour and width | Colour 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.
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
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
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
Asking for the line itself to turn removes many crosses in flat markets.
DEMA mistakesCommon mistakes.
Trading every cross in a range
A fast line gets crossed often when price goes sideways. Check the slope first.
Expecting no delay
DEMA cuts lag, it does not remove it. The cross still comes after the low.
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 indicatorsTry DEMA on a live chart.
Free. No download.
Works in your browser and on iPhone too.