Functions
orderflow.cvd()
Cumulative volume delta. On each bar it adds that bar's delta - the balance of buying against selling, taken as at the bar's close - to a running total, and hands you that total as one whole number per bar. The total restarts from zero on the first bar of every session. What you read is therefore the delta accumulated within the current session, not a figure running from the start of the chart, and a fall to zero at a session boundary is the restart rather than a move in the market. There are no arguments, so the session restart cannot be moved or switched off. Where a bar's delta is `na`, the running total carries forward unchanged instead of becoming `na`.
Syntax
orderflow.cvd() → series int
Return Type
series int Example
indicator("Cumulative Volume Delta (CVD)", overlay=false)
cvd = orderflow.cvd()
plot(cvd, title="CVD", style=plotStyle.line, color=color.orange)