Contents 

Technical Analysis functions library for .NET
Trend Indicators
Advance/Decline Line
Aroon Down
Aroon Oscillator
Aroon Up
Bill Williams Profitunity
DEMA
Exponential Moving Average
Exponential Moving Average Difference
Exponential Moving Average Factor
Exponential Moving Average Factor Difference
Line Weighted Moving Average
Line Weighted Moving Average Difference
MACD
Moving Average
Moving Average Difference
Nicoski
Positive Negative Changes Difference
Qstick Indicator
TEMA
Volatility Indicators
Average True Range
Bollinger Band
Bollinger Band Percent
Breadth Advance/Decline
Bollinger Band Width
True Range
Volatility
Volatility Chaikin
Momentum Indicators
Acceleration
Accumulation/Distribution
Balance Of Power
CCI
Fosback Unchanged Issues
Hughes Breadth Index
McClellan Oscillator
McClellan Summation Index
Momentum
Morris Daily Pressure
OBV Oscillator
OBV with Average Volume
On Balance Volume
Performance
Price Oscillator Percent Difference
Price Oscillator Points Difference
RSI
Stochastic Oscillator
Weighted Close
Wilder RSI
Williams R
Market Strength Indicators
Average Of Volume ROC
Chaikin A/D Oscillator
Chaikin Money Flow
Ease Of Movement
Market Facilitation Index
Volume Oscillator Percent Difference
Volume Oscillator Points Difference
Support and Resistance Indicators
Envelope
Additional Functions
Basic Functions
Average Changes
Average Negative Changes
Average Positive Changes
Change
Cumulative Sum
High Value
Low Value
Mean
Median Price
Negative Changes
Negative Changes Sum
Percent Change
Positive Changes
Positive Changes Sum
Sum Lag
Typical Price
Statistical Functions
Correlation Coefficient
Covariance
Standard Deviation
Variance
All Functions
Order TA4.NET
System requirements
Contacts

TA4.Net Web Online Help

Prev Page Next Page

On Balance Volume

On Balance Volume ("OBV") is a momentum indicator that relates volume to price change.

On Balance Volume was developed by Joe Granville and originally presented in his book New Strategy of Daily Stock Market Timing for Maximum Profits.

On Balance Volume is a running total of volume. It shows if volume is flowing into or out of a security. When the security closes higher than the previous close, all of the day's volume is considered up-volume. When the security closes lower than the previous close, all of the day's volume is considered down-volume.

The basic assumption, regarding OBV analysis, is that OBV changes precede price changes. The theory is that smart money can be seen flowing into the security by a rising OBV. When the public then moves into the security, both the security and the OBV will surge ahead.

If the security's price movement precedes OBV movement, a "non-confirmation" has occurred. Nonconfirmations can occur at bull market tops (when the security rises without, or before, the OBV) or at bear market bottoms (when the security falls without, or before, the OBV).

The OBV is in a rising trend when each new peak is higher than the previous peak and each new trough is higher than the previous trough. Likewise, the OBV is in a falling trend when each successive peak is lower than the previous peak and each successive trough is lower than the previous trough. When the OBV is moving sideways and is not making successive highs and lows, it is in a doubtful trend.

Once a trend is established, it remains in force until it is broken. There are two ways in which the OBV trend can be broken. The first occurs when the trend changes from a rising trend to a falling trend, or from a falling trend to a rising trend.

The second way the OBV trend can be broken is if the trend changes to a doubtful trend and remains doubtful for more than three days. Thus, if the security changes from a rising trend to a doubtful trend and remains doubtful for only two days before changing back to a rising trend, the OBV is considered to have always been in a rising trend.

When the OBV changes to a rising or falling trend, a "breakout" has occurred. Since OBV breakouts normally precede price breakouts, investors should buy long on OBV upside breakouts. Likewise, investors should sell short when the OBV makes a downside breakout. Positions should be held until the trend changes (as explain-ed in the preceding paragraph).

This method of analyzing On Balance Volume is designed for trading short-term cycles. According to Granville, investors must act quickly and decisively if they wish to profit from short-term OBV analysis.

Syntax:

Public Function OnBalanceVolume(ByVal HLOCV()() As Double) As Double

Parameters:

  • ByVal HLOCV()() As Double

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.OnBalanceVolume(HLOCV)