AnyChart
API Reference
Still have questions?
Contact support
Top

namespace anychart.math.mfi Improve this Doc

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

Functions Overview

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

Typedefs Overview

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

Functions Description

calculate

MFI calculation.

Params:

NameTypeDescription
contextanychart.math.mfi.ContextMFI Context.
closenumberClose value.
highnumberHigh value.
lownumberLow value.
volumenumberVolume value.

Returns:

number - The calculated MFI indicator value.

calculationFunction

createComputer

Creates MFI computer for the given table mapping.

Params:

NameTypeDefaultDescription
mappinganychart.data.TableMapping
Data mapping.
periodnumber
14
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

initContext

Creates a context for MFI indicator calculation.

Params:

NameTypeDefaultDescription
periodnumber
10
Indicator period.

Returns:

anychart.math.mfi.Context - Context.

startFunction

Start calculation function for MFI indicator calculation.

Params:

NameTypeDescription
contextanychart.math.mfi.ContextContext.