Return the value of the technical indicator “Double Exponential Moving Average” over N periods on ‘price’ type selected.
Syntax:
1 |
DEMA[N](price) |
Calculation :
We start to calculate MME1, a (n day) exponential moving average . The we calculate MME2, that’s the exponential moving average of MME1 with the same period.
Finally the indicator DEMA = 2 * MME1 – MME2