Visual Basic (Declaration)  

Public Overloads Shared Function PositiveVolumeIndex( _ ByVal s As Series _ ) As Series 
Visual Basic (Usage)  Copy Code 


Parameters
 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.
Indicator Formula
The formula for this indicator is:
If the volume is greater then the yesterday volume then:
PVI = Yesterday's PVI + (((Close  Yesterday's Close)/Yesterday's Close) *Yesterday's PVI)
If today's volume is less than or equal to yesterday's volume then:
PVI = Yesterday's PVI
Allways the first element of an financial array will be a value of the most recent period considered.