Line Weighted Moving Average Difference

The Line Weighted Moving Averages Difference is difference of two Line Weighted Moving Averages calculated on PERIOD1 and PERIOD2 time periods.

Syntax:

Public Function LinearWeightedMovAvgDiff(ByVal LWMADIn() As Double, ByVal Lag1 As Long, ByVal Lag2 As Long) As Double

Parameters:

  • ByVal LWMADIn() As Double
  • ByVal Lag1 As Long
  • ByVal Lag2 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.LineWeightedMovAvgDiff(CloseValues, 12, 26)

 


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

Browser Based Help. Published by chm2web software.