AnyChart
API Reference
Still have questions?
Contact support
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:

NameTypeDescription
contextanychart.math.cci.ContextCCI context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.

Returns:

number - The calculated CCI indicator value.

calculationFunction

createComputer

Creates a CCI computer for the given table mapping.

Params:

NameTypeDescription
mappinganychart.data.TableMappingData mapping.
periodnumberIndicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for CCI indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.

Returns:

anychart.math.cci.Context - Context.

startFunction

Start calculation function for CCI indicator calculation.

Params:

NameTypeDescription
contextanychart.math.cci.ContextContext.