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


sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.
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 sc As SeriesCollection _
) As SeriesCollection
Visual Basic (Usage)Copy Code
Dim sc As SeriesCollection
Dim value As SeriesCollection
 
value = FinancialEngine.OnBalanceVolume(sc)
C# 
public static SeriesCollection OnBalanceVolume( 
   SeriesCollection sc
)

Parameters

sc
A collection of series objects. For example, to evaluate this indicator for two series you will need to pass a series collection containing this two series.

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

© 2021 All Rights Reserved.