Volume Oscillator Percent Difference
The Volume Oscillator displays the difference between two moving averages of
a security's volume. The difference between the moving averages can be expressed
in either points or percentages.
You can use the difference between two moving averages of volume to determine
if the overall volume trend is increasing or decreasing. When the Volume
Oscillator rises above zero, it signifies that the shorter-term volume moving
average has risen above the longer-term volume moving average, and thus, that
the short-term volume trend is higher (i.e., more volume) than the longer-term
volume trend.
There are many ways to interpret changes in volume trends. One common belief
is that rising prices coupled with increased volume, and falling prices coupled
with decreased volume, is bullish. Conversely, if volume increases when prices
fall, and volume decreases when prices rise, the market is showing signs of
underlying weakness.
The theory behind this is straight forward. Rising prices coupled with
increased volume signifies increased upside participation (more buyers) that
should lead to a continued move. Conversely, falling prices coupled with
increased volume (more sellers) signifies decreased upside participation.
Volume Oscillator is calculated in points or percentage.
Syntax:
Public Function VolumeOscillatorPercentDiff(ByVal VOPDIn() As Double, ByVal Lag1 As Long, ByVal Lag2 As Long, ByVal Method As axltaMovingAverageType) As Double
Parameters:
- ByVal VOPDIn() As Double
- ByVal Lag1 As Long
- ByVal Lag2 As Long
- ByVal Method As axltaMovingAverageType
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.VolumeOscillatorPercentDiff(CloseValues, 12, 26, TA4Net.axltaMovingAverageType.axltaMovExponential)
|