Top

namespace anychart.math.cmf Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

CMF calculation.

Params:

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

Returns:

number - The calculated CMF indicator value.

calculationFunction

Calculates CMF.

Params:

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

Try it:

createComputer

Creates a CMF 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 CMF indicator calculation.

Params:

Name Type Default Description
period number
20
Indicator period.

Returns:

anychart.math.cmf.Context - Context.

Try it:

startFunction

Start calculation function for CMF indicator calculation.

Params:

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

Try it: