DEMA

DEMA is a unique smoothing indicator developed by Patrick Mulloy. It was originally introduced in the January 1994 issue of Stocks & Commodities magazine.

As Mr. Mulloy explains in the article:

"Moving averages have a detrimental lag time that increases as the moving average length increases. The solution is a modified version of exponential smoothing with less lag time."

DEMA is an acronym that stands for Double Exponential Moving Average. However, the name of this smoothing technique is a bit misleading in that it is not simply a moving average of a moving average. It is a unique composite of a single exponential moving average and a double exponential moving average that provides less lag than either of the two components individually.

Syntax:

Public Function DEMA(ByVal CloseValues() As Double, ByVal Lag As Long) As Double

Parameters:

  • ByVal CloseValues() As Double
  • ByVal Lag As Long

Back to list

 

Example:

 

    Dim TA4Net As New TA4Net.CTAFunctions("YOUR-REGISTRATION-CODE")

    Dim Result() As Double

    Dim CloseValues() As Double

  

    ' loading values to array

    CloseValues = GetCloseValues()

    ' calculating Technical Analysis function

    Result = TA4Net.DEMA(CloseValues, 14)

 


TA4.NET® Franz AG 2004©
Web site: http://www.ta4.net
e-mail: support@ta4.net

Browser Based Help. Published by chm2web software.