The Moving Average difference is the difference of two simple Moving Averages
calculated on PERIOD1 and PERIOD2 time periods.
Public Function MovAvgDiff(ByVal MADIn() As Double, ByVal Lag1 As Long, ByVal Lag2 As Long) As Double
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.MovAvgDiff(CloseValues, 12, 26)