VolumePine Script v6Built-in Variable

ta.pvt

Price-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

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.