DEMA - Double Exponential Moving Average. The DEMA is a fast-acting moving average that is more responsive to market changes than a traditional moving average. It was developed by Patrick Mulloy to create a calculation that eliminated some of the lag associated with traditional moving averages. The formula is: DEMO = 2 * EMA - EMA(EMA).
Because EMA(EMA) is used in the calculation, DEMA needs 2 * period -1 samples to start producing values in contrast to the period samples needed by a regular EMA.
Usage in VisualForex:
Add the DEMA indicator to the board, connect it with a block or start point and create double variable to store the DEMA indicator result. DEMA in VisualJForex: