Skip to content

charton API


charton API / @chart-on/ta / pvt

Function: pvt() ​

pvt(close, volume, out?): Float64Array

Defined in: volume.ts:211

Price volume trend: a running total that adds each bar's volume times its close's percent change from the bar before (as a fraction). Starts at 0 on the first bar; a previous close of 0 adds nothing. Lookback 0. A NaN input gives NaN and the total starts again from 0.

Parameters ​

close ​

Series

volume ​

Series

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array