AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.obv Improve this Doc

Namespace anychart.math.obv
Learn more about indicator mathematics.

Functions Overview

calculate()OBV calculation
calculationFunction()Calculates OBV.
createComputer()Creates OBV computer for the given table mapping.
initContext()Creates context for OBV indicator calculation.
startFunction()Start calculation function for OBV indicator calculation.

Typedefs Overview

anychart.math.obv.ContextType definition for the context.

Functions Description

calculate

OBV calculation

Params:

Name Type Description
context anychart.math.obv.Context Context.
close number Close value
volume number Volume value

Returns:

number - The calculated OBV indicator value.

calculationFunction

Calculates OBV.

Params:

Name Type Description
row anychart.data.TableComputer.RowProxy Row proxy.
context anychart.math.obv.Context Context.

Try it:

createComputer

Creates OBV computer for the given table mapping.

Params:

Name Type Description
mapping anychart.data.TableMapping Data mapping.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates context for OBV indicator calculation.

Returns:

anychart.math.obv.Context - Context.

Try it:

startFunction

Start calculation function for OBV indicator calculation.

Params:

Name Type Description
context anychart.math.obv.Context Context.

Try it: