Double Exponential Moving Average (DEMA)

The Double Exponential Moving Average (DEMA) combines a smoothed EMA with a single EMA to provide a diminished amount of delays (than if the two moving averages had been used apart). This is calculated as follows DEMA = 2*EMA – EMA(EMA). The user may change the input (close), period length and shift number. This indicator’s definition is further expressed in the condensed code given in the calculation below.

DEMA

How To Trade Using the Double Exponential Moving Average

The Double Exponential Moving Average is a lagging trend indicator and may be used in conjuction with other studies. No trading signals are calculated.

How To Access in MotiveWave

Go to the top menu, choose Study>Moving Average>Double Exponential Moving Average

or go to the top menu, choose Add Study, start typing in this study name until you see it appear in the list, click on the study name, click OK.

Important Disclaimer: The information provided on this page is strictly for informational purposes and is not to be construed as advice or solicitation to buy or sell any security. Please see our Risk Disclosure and Performance Disclaimer Statement.

Calculation

//input = price, user defined, default is close
//period = user defined, default is 20
//shift = user defined, default is 0
//dema = double exponential moving average
//index = current bar number

Plot: dema = dema(index+shift, input, period);