VolumePine Script v6Built-in Variable

ta.pvtPrice-Volume Trend

Price-Volume Trend. A cumulative volume-based indicator that relates volume to price change percentage.

Syntax

Syntax
ta.pvt

Returns

series float

Code Examples

Pine Script v6 Example
//@version=6
indicator("Price-Volume Trend")
plot(ta.pvt, color=color.yellow)

// the same on pine
f_pvt() =>
    ta.cum((ta.change(close) / close[1]) * volume)

plot(f_pvt())

Trading Applications

Confirm price trends with proportional volume

Detect divergences between PVT and price

Identify accumulation and distribution phases

Use as an alternative to OBV with percentage weighting

Related Functions

Frequently Asked Questions

ta.pvt is Price-Volume Trend: cumulative sum of volume multiplied by the proportional close change, weighting flow by how much price moved.

OBV adds or subtracts full volume by up/down close. PVT scales each bar contribution by the percent price change, so large moves contribute more than small ones.

Like OBV, if price trends but PVT fails to confirm, traders watch for weakening volume participation. Always validate with context and other tools.

Generate ta.pvt Code with AI

Skip the manual coding. Use Pineify's AI Coding Agent to generate Pine Script code using ta.pvt and other built-in functions instantly.