The double exponential moving average (DEMA) and triple exponential moving average (TEMA) are combination EMAs (see Exponential Moving Average) by Patrick Mulloy, designed to track recent prices even more closely than the plain EMA. The calculation for DEMA is
DEMA = 2*EMA[N] - EMAofEMA[N]
and for TEMA,
TEMA = 3*EMA[N] - 3*EMAofEMA[N] + EMAofEMAofEMA[N]
Both are “overweight” on recent points so the moving average can actually get ahead of recent prices in some unusual price patterns. The following graph shows the DEMA weights for N=15.
And the following is TEMA for the same N=15.
Copyright 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2014, 2015, 2016, 2017 Kevin Ryde
Chart is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.