dotnetCHARTING Send comments on this topic.
NegativeVolumeIndex(String,Series) Method
See Also 
dotnetCHARTING Namespace > FinancialEngine Class > NegativeVolumeIndex Method : NegativeVolumeIndex(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.
We evaluate the Negative Volume Index(NVI) wich take in the consideration the days where volume decrease from the prevoius day.

Syntax

Visual Basic (Declaration) 
Public Overloads Shared Function NegativeVolumeIndex( _
   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.NegativeVolumeIndex(seriesName, s)
C# 
public static Series NegativeVolumeIndex( 
   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.

Exceptions

ExceptionDescription
ArgumentExceptionThrown if the series is empti or contain negative values.

Remarks

Indicator Formula

The formula for this indicator is:


If the volume is less then the yesterday volume then: NVI = Yesterday's NVI + (((Close - Yesterday's Close)/Yesterday's Close) *Yesterday's NVI)
If today's volume is greater than or equal to yesterday's volume then:
NVI = Yesterday's NVI
Allways the first element of an financial array will be a value of the most recent period considered.

See Also

© 2010 All Rights Reserved.