AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.roc Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

RoC calculation.

Params:

NameTypeDescription
contextanychart.math.roc.ContextRoC context.
valuenumberValue.

Returns:

number - The calculated RoC indicator value.

calculationFunction

Organizes RoC calculation.

Params:

NameTypeDescription
rowanychart.data.TableComputer.RowProxyRow proxy.
contextanychart.math.roc.ContextContext.

createComputer

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

Params:

NameTypeDefaultDescription
periodnumber
20
Indicator period.

Returns:

anychart.math.roc.Context - Context.

startFunction

Start calculation function for RoC indicator calculation.

Params:

NameTypeDescription
contextanychart.math.roc.ContextContext.