Negative Volume Index
The Negative Volume Index is similar to the Positive Volume Index, except it puts focus on periods when volume decreases from the previous period.
The interpretation of the Negative Volume Index is that well-informed investors are buying when the index falls and uninformed investors are buying when the index rises.
set NVI =NVI(CLOSE)
plot(NVI, line, red, NVI)