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:

NameTypeDescription
contextanychart.math.obv.ContextContext.
closenumberClose value
volumenumberVolume value

Returns:

number - The calculated OBV indicator value.

calculationFunction

createComputer

Creates OBV computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates context for OBV indicator calculation.

Returns:

anychart.math.obv.Context - Context.

startFunction

Start calculation function for OBV indicator calculation.

Params:

NameTypeDescription
contextanychart.math.obv.ContextContext.