The Double Exponential Moving Average is a technical indicator which uses two exponential moving averages (EMAs) to eliminate lag, as some traders view lag as a problem. The DEMA is used in a similar way to traditional moving averages (MA)..The DEMA can be used in the same way as other MAs, as long as the trader understands the indicator will react quicker than traditional MAs. 

Indicator type



DEMA = (2*ema(data, period) – ema(ema(data, period), period)

How to use:

The DEMA helps confirm uptrends when the price is above it and helps confirm downtrends when the price is below it. When the price crosses the average that may signal a trend change. The DEMA responds quicker to price changes than a normal exponential moving average.

The DEMA can be used as a stand-alone indicator and can be incorporated into other technical analysis tools whose logic is based on moving averages.

DEMA can also be used to analyze the strength of an uptrend or downtrend in price.

Bullish Scenario

  • When the price moves above the DEMA from below that could signal the downtrend is over and the price is starting to rise.Hence one can go long if the price crosses above the  DEMA.

Bearish Scenario

  • When the price moves below the DEMA from above that could signal the uptrend is over and the price is starting to fall. Hence one can go short if the price crosses below the  DEMA.

Building On Mudrex:

You can create strategies on Mudrex using simple ‘blocks’. You can connect multiple blocks and define conditions on those connections or ‘paths’ to create your strategy on Mudrex.

As discussed above, lets first write our entry/exit conditions so that we know what to do:

BUY: When price crosses up DEMA.

Compare Block for Buy Signal over Mudrex

SELL: When price crosses below DEMA.

Compare Block for Sell Signal over Mudrex

Final Strategy: The final strategy on Mudrex looks like this

DEMA Envelope Trading Strategy over Mudrex


We can now run a quick back-test to see how our strategy performs.

Back-Test Result for DEMA Envelope

Quick links