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

NameTypeDescription
contextanychart.math.cho.ContextCHO context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.
volumenumberVolume value.

Returns:

number - The calculated CHO indicator value.

calculationFunction

createComputer

Creates a CHO computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
fastPeriodnumber
3
Indicator period.
slowPeriodnumber
10
Indicator period.
maTypestring
"ema"
Indicator smoothing type.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for CHO indicator calculation.

Params:

NameTypeDefaultDescription
fastPeriodnumber
3
Indicator period.
slowPeriodnumber
10
Indicator period.
maTypestring
"ema"
Indicator smoothing type.

Returns:

anychart.math.cho.Context - Context.

startFunction

Start calculation function for CHO indicator calculation.

Params:

NameTypeDescription
contextanychart.math.cho.ContextContext.