AnyChart
API Reference
Still have questions?
Contact support
Top
You are looking at an outdated v7 version of this document. Switch to the v8 version to see the up to date information.

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:

NameTypeDescription
contextanychart.math.cmf.ContextCMF context
closenumberClose value.
highnumberHigh value.
lownumberLow value.
volumenumberVolume value.

Returns:

number - The calculated CMF indicator value.

calculationFunction

createComputer

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

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.

Returns:

anychart.math.cmf.Context - Context.

startFunction

Start calculation function for CMF indicator calculation.

Params:

NameTypeDescription
contextanychart.math.cmf.ContextContext.