Sidechair

ta.pvt

Browse the reference

The price-volume trend: a running total of volume multiplied by the percentage change in close.

Try it in the editor

Each bar adds volume * (close - close[1]) / close[1] to the total. A large move on large volume moves the line most; a small move on small volume barely changes it.

It resembles ta.obv but scales each bar's volume by the size of the move instead of using only its direction. The first bar has no previous close, so it starts na.

Type

series float

Remarks

  • The absolute level depends on the starting bar, so read direction and divergences.

Example

Pine ScriptPrice-volume trendOpen in editor
//@version=6
indicator("PVT")
plot(ta.pvt, "PVT", color = color.teal)
plot(ta.ema(ta.pvt, 21), "EMA", color = color.red)

See also

Runs on Sidechair