indicator · own pane · open source

Cumulative Volume Delta indicator

Cumulative Volume Delta is a free open-source indicator by @deepwick. Cumulative Volume Delta (CVD) is the running sum of volume signed by each bar's direction … Deepwick Script runs a subset of Pine Script.

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

What Cumulative Volume Delta does

Cumulative Volume Delta (CVD) is the running sum of volume signed by each bar's direction — the closest single-line approximation of net buy vs sell flow when only OHLCV is available.

  • Rising CVD = aggressive buyers winning the auction.
  • Falling CVD = aggressive sellers winning; divergences against price are a common reversal cue.

Source code

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

//@version=6
indicator("Cumulative Volume Delta", overlay=false)
src = input.source(close, "Source")
colorLine = input.color("color.blue", "Color  Line")
colorNeutral = input.color("color.gray", "Color  Neutral")
chg = src - src[1]
dir = chg > 0 ? 1 : chg < 0 ? -1 : 0
cvd = ta.cum(dir * volume)
hline(0, "Zero", color=colorNeutral)
p_CVD = plot(cvd, "CVD", color=colorLine, linewidth=2)
alertcondition(ta.crossover(cvd, ta.highest(cvd, 50)), "New 50-bar CVD high", "CVD printed a new 50-bar high")
alertcondition(ta.crossunder(cvd, ta.lowest(cvd, 50)), "New 50-bar CVD low", "CVD printed a new 50-bar low")

Comments

No comments yet.

Sign in to comment.