dotnetCHARTING Send comments on this topic.
OnBalanceVolume(String,Series) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > OnBalanceVolume Method : OnBalanceVolume(String,Series) Method


seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An series where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.
On Balance Volume ("OBV") is a momentum indicator developed by Joe Granville that relates volume to price change.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function OnBalanceVolume( _
   ByVal seriesName As String, _
   ByVal s As Series _
) As Series
Visual Basic (Usage)Copy Code
Dim seriesName As String
Dim s As Series
Dim value As Series
 
value = FinancialEngine.OnBalanceVolume(seriesName, s)
C# 
public static Series OnBalanceVolume( 
   string seriesName,
   Series s
)

Parameters

seriesName
The name of the series which will be displayed on the chart, i.e. its label.
s
An series where the first element is the closing price in the last trading period, the second term is the closing price in the previous trading period and so on.

Remarks

Indicator Formula

The formula for this indicator is:


If today's close is greater than yesterday's close then:
OBV = Yesterday's OBV + Today's Volume
If today's close is less than yesterday's close then:
OBV = Yesterday's OBV - Today's Volume
If today's close is equal to yesterday's close then:
OBV = Yesterday's OBV

See Also

© 2010 All Rights Reserved.