Top

namespace anychart.math.cho Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

CHO calculation.

Params:

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

Returns:

number - The calculated CHO indicator value.

calculationFunction

Calculates CHO.

Params:

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

Try it:

createComputer

Creates a CHO computer for the given table mapping.

Params:

Name Type Default Description
mapping anychart.data.TableMapping
Data mapping.
fastPeriod number
3
Indicator period.
slowPeriod number
10
Indicator period.
maType string
"ema"
Indicator smoothing type.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates a context for CHO indicator calculation.

Params:

Name Type Default Description
fastPeriod number
3
Indicator period.
slowPeriod number
10
Indicator period.
maType string
"ema"
Indicator smoothing type.

Returns:

anychart.math.cho.Context - Context.

Try it:

startFunction

Start calculation function for CHO indicator calculation.

Params:

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

Try it: