indicator · own pane · open source

Positive Volume Index MA indicator

Positive Volume Index MA is a free open-source indicator by @deepwick. PVI with Moving Average adds a smoothed baseline on top of the Positive Volume Index — the… Deepwick Script runs a subset of Pine Script.

Deepwick · @deepwickv1Updated 3 Nov 2026▲ 0 users
Running…
Loading chart…

What Positive Volume Index MA does

PVI with Moving Average adds a smoothed baseline on top of the Positive Volume Index — the standard 'above MA = trend up' read for the volume axis.

  • PVI above its own MA = crowd participation supporting the move.
  • PVI below its own MA = crowd participation fading; treat rallies cautiously.

Source code

Deepwick Script, a subset of Pine Script · read-only

//@version=6
indicator("Positive Volume Index MA", overlay=false)
len = input.int(14, "SMA length", minval=2, maxval=200)
colorLine = input.color("color.blue", "Color  Line")
colorMid = input.color("color.orange", "Color  Mid")
var float ta.pvi = 100
prev = na(ta.pvi[1]) ? 100 : ta.pvi[1]
ta.pvi := volume > volume[1] ? prev * close / close[1] : prev
ma = ta.sma(ta.pvi, len)
p_PVI = plot(ta.pvi, "PVI", color=colorLine, linewidth=2)
p_PVI_MA = plot(ma, "PVI MA", color=colorMid, linewidth=2)
alertcondition(ta.crossover(ta.pvi, ma), "PVI above MA", "Positive Volume Index crossed above its MA")
alertcondition(ta.crossunder(ta.pvi, ma), "PVI below MA", "Positive Volume Index crossed below its MA")

Comments

No comments yet.

Sign in to comment.