Lipi Reference
Lipi

Functions

talib.obv()

On-balance volume for the chart's bars. Like the other volume indices in this namespace, it is called with an empty argument list.

Syntax

                talib.obv() → series float
              

Return Type

series float

Example


          //@lipi=2
indicator("talib.obv Example", overlay=false)
obv = talib.obv()
plot(obv, title="On-Balance Volume", color=color.blue)
plot(talib.sma(obv, 20), title="OBV SMA", color=color.orange)