Home >> (Table of Contents) Studies and Indicators >> Technical Studies Reference >> Moving Average - Double Exponential
Technical Studies Reference
- Technical Studies Reference
- Common Study Inputs (Opens a new page)
- Using Studies (Opens a new page)
Moving Average - Double Exponential
This study calculates and displays a Double Exponential Moving Average of the data specified by the Input Data Input.
Let \(X\) be a random variable denoting the Input Data, and let \(X_t\) be the value of the Input Data at Index \(t\). Let the Input Length be denoted as \(n\). Then we denote the Moving Average - Double Exponential at Index \(t\) for the given Inputs as \(DEMA_t(X,n)\), and we compute it using the following sequence of Exponential Moving Averages for the given Inputs.
\(EMA_t^{(1)}(X,n) = EMA_t(X,n)\)\(EMA_t^{(2)}(X,n) = EMA_t(EMA(X,n),n)\)
In the above relations, \(EMA_t^{(j)}\) denotes the \(j-\)fold composition of the \(EMA\) function with itself, and \(EMA(X,n)\) is a random variable denoting the Exponential Moving Average of Length \(n\) for the Input Data \(X\). We compute \(DEMA_t(X,n)\) in terms of these Exponential Moving Averages for \(t \geq n\) as follows.
\(DEMA_t(X,n) = 2EMA_t^{(1)}(X,n) - EMA_t^{(2)}(X,n)\)Inputs
Spreadsheet
The spreadsheet below contains the formulas for this study in Spreadsheet format. Save this Spreadsheet to the Data Files Folder.
Open it through File >> Open Spreadsheet.
*Last modified Monday, 26th September, 2022.