AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated 7.14.0 version of this document. Switch to the 8.4.0 version to see the up to date information.

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:

NameTypeDescription
contextanychart.math.adl.ContextADL context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.
volumenumberVolume value.

Returns:

number - The calculated ADL indicator value.

calculationFunction

createComputer

Creates an ADL computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for ADL indicator calculation.

Returns:

anychart.math.adl.Context - Context.

startFunction

Start calculation function for ADL indicator calculation.

Params:

NameTypeDescription
contextanychart.math.adl.ContextContext.