Top

namespace anychart.math.adl Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

ADL calculation.

Params:

Name Type Description
context anychart.math.adl.Context ADL context.
close number Close value.
high number High value.
low number Low value.
volume number Volume value.

Returns:

number - The calculated ADL indicator value.

calculationFunction

Calculates ADL.

Params:

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

Try it:

createComputer

Creates an ADL 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 a context for ADL indicator calculation.

Returns:

anychart.math.adl.Context - Context.

Try it:

startFunction

Start calculation function for ADL indicator calculation.

Params:

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

Try it: