Sidechair

ta.pvi

Browse the reference

The positive volume index: starts at 1 and changes with price only on bars where volume rose from the previous bar.

Try it in the editor

On a bar with higher volume than the bar before, ta.pvi grows by its previous value times the percentage change of the close. Bars with falling volume leave it as it was.

It tracks the crowd's participation, the mirror image of ta.nvi, and begins at 1.

Type

series float

Remarks

  • A bar with no volume change leaves the index where it was.

Example

Pine ScriptPositive volume indexOpen in editor
//@version=6
indicator("PVI")
plot(ta.pvi, "PVI", color = color.orange)
plot(ta.ema(ta.pvi, 255), "EMA 255", color = color.gray)

See also

Runs on Sidechair