Sidechair

ta.nvi

Browse the reference

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

Try it in the editor

On a bar with lower volume than the bar before, ta.nvi grows by its previous value times the percentage change of the close. On other bars it stays unchanged.

The idea is that informed traders act on quiet days, so only those bars move the index. The series starts at 1 on the first bar.

Type

series float

Remarks

  • It is usually read against a long moving average of itself.

Example

Pine ScriptNegative volume index with averageOpen in editor
//@version=6
indicator("NVI")
plot(ta.nvi, "NVI", color = color.blue)
plot(ta.ema(ta.nvi, 255), "EMA 255", color = color.red)

See also

Runs on Sidechair