Skip to content

charton API


charton API / @chart-on/ta / obv

Function: obv() ​

obv(close, volume, out?): Float64Array

Defined in: volume.ts:77

On-balance volume: a running total that adds the bar's volume when the close rises and subtracts it when the close falls. Starts at 0 on the first bar. Lookback 0. A NaN input gives NaN and the total starts again from 0.

Parameters ​

close ​

Series

volume ​

Series

out? ​

Float64Array<ArrayBufferLike>

Returns ​

Float64Array