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.Context | Type definition for the context. | 
Functions Description
calculate
OBV calculation
 Detailed description
Calculates next OBV value based on a previous OBV value and current close value.
On first calculation pass 0.
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
startFunction
Start calculation function for OBV indicator calculation.
Params:
| Name | Type | Description | 
|---|---|---|
| context | anychart.math.obv.Context | Context. | 
Try it:
