Chaikin A/D Oscillator
The Chaikin Oscillator is created by subtracting a 10-period (PERIOD2)
exponential moving average of the Accumulation/Distribution Line from a 3-period
(PERIOD1) exponential moving average of the Accumulation/Distribution Line.
Syntax:
Public Function ChaikinADOscillator(ByVal HLOCV()() As Double, ByVal Lag1 As Long, ByVal Lag2 As Long) As Double
Parameters:
- ByVal HLOCV()() 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
HLOCV(,) As
Double
' loading values to array
HLOCV =
GetHLOCVValues()
' calculating Technical Analysis function
Result = TA4Net.ChaikinADOscillator(HLOCV, 12, 26)
|