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:

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

Returns:

number - The calculated MFI indicator value.

calculationFunction

Calculates MFI.

Params:

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

Try it:

createComputer

Creates MFI computer for the given table mapping.

Params:

Name Type Default Description
mapping anychart.data.TableMapping
Data mapping.
period number
14
Indicator period.

Returns:

anychart.data.TableComputer - Table computer.

Try it:

initContext

Creates a context for MFI indicator calculation.

Params:

Name Type Default Description
period number
10
Indicator period.

Returns:

anychart.math.mfi.Context - Context.

Try it:

startFunction

Start calculation function for MFI indicator calculation.

Params:

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

Try it: