Positive Volume Index
The Positive Volume Index puts focus on periods when volume increases from the previous period.
The interpretation of the Positive Volume Index is that the majority of investors are buying when the index rises, and selling when the index falls.
set PVI = PVI(CLOSE)
plot(PVI, line, red, PVI)