# SF - Positive volume index

Classic volume analysis indicator

Positive volume index (PVI) is an indicator used in technical analysis that gives signals about price dynamics based on positive volume changes. PVI helps to assess trend strength and potentially confirm price reversals.

The indicator represents two lines:

PVI;

PVI moving average.

PVI is based on the price movement depending on whether the current volume value is higher than the previous period.

If the volume does not decrease from one period to the next, the PVI remains the same.

PVI is calculated according to the formula:

$$ PVI_{t} = volume_{t} > volume_{t-1};?; PVI_{t-1} + \dfrac{Close_{t} + Close_{t-1}}{Close_{t-1}} \times PVI_{t-1}:PVI_{t-1} $$$

where PVI(t) - PVI at time t, volume(t) - trading volume at time t, Close(t) - closing price at time t.

The user has the ability to change the values of the following parameters:

Initial value - the starting value from which the calculation begins. This parameter affects the dimensionality of the scale. The default is 100;

Signal smoothing type - type of moving average calculated for PVI. Can take the following values: "SMA" (simple moving average), "EMA" (exponential moving average), "WMA" (weighted moving average), "VWMA" (volume weighted moving average), "LSMA" (linear regression moving average);

Length - moving average period.

The user has the ability to customize the graphical display of the indicator. Available for customization:

display colors and transparency of PVI, moving average, as well as filling of the contour formed by PVI and moving average (by default - if PVI is larger than moving average, the indicator chart is colored in green. if it's less than that, it's red. Line transparency - 0%, fill transparency - 50%);

type of line display. The standard display types available are TradingView.

Last updated