Top

namespace anychart.math.cci Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

CCI calculation.

Params:

Name Type Description
context anychart.math.cci.Context CCI context.
close number Close value.
high number High value.
low number Low value.

Returns:

number - The calculated CCI indicator value.

calculationFunction

Calculates CCI.

Params:

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

Try it:

createComputer

Creates a CCI computer for the given table mapping.

Params:

Name Type Description
mapping anychart.data.TableMapping Data mapping.
period number Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates a context for CCI indicator calculation.

Params:

Name Type Default Description
period number
20
Indicator period.

Returns:

anychart.math.cci.Context - Context.

Try it:

startFunction

Start calculation function for CCI indicator calculation.

Params:

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

Try it: