The Money Flow Index (MFI) uses price and volume data for identifying overbought or oversold signals. It can also be used to spot divergences which warn of a trend change in price. MFI moves between 0 and 100. Unlike many other oscillators such as the Relative Strength Index (RSI), the Money Flow Index incorporates both price and volume data.

Hierarchy

Constructors

  • Parameters

    • priceChart: TradingChart
    • chart: ChartXY<UIBackground>
    • closeValues: number[]
    • highValues: number[]
    • lowValues: number[]
    • volumes: number[]
    • periodCount: number
    • lineColor: Color
    • oversoldColor: Color
    • overboughtColor: Color
    • lineWidth: number
    • rowIndex: number

    Returns MoneyFlowIndex

Methods

  • Gets the indicator name.

    Returns string

    The indicator name.

  • Sets the color of the Money Flow Index line.

    Parameters

    • newColor: string

      New line color as string, should be in HEX format e.g. #FFFFFF.

    Returns void

  • Sets the width of the Money Flow Index line.

    Parameters

    • newWidth: number

      New line width.

    Returns void

  • Sets the name of the indicator.

    Parameters

    • name: string

      New indicator name.

    Returns void

  • Moves the indicator from its calculated position forward or backward.

    Parameters

    • newOffset: number

      New offset value.

    Returns void

  • Sets the color of the overbought range line.

    Parameters

    • newColor: string

      New line color as string, should be in HEX format e.g. #FFFFFF.

    Returns void

  • Sets the values for oversold and overbought ranges.

    Parameters

    • oversoldRange: number

      Oversold range.

    • overboughtRange: number

      Overbought range.

    Returns void

  • Sets the color of the oversold range line.

    Parameters

    • newColor: string

      New line color as string, should be in HEX format e.g. #FFFFFF.

    Returns void

  • Sets the number of time periods (n) used to calculate the indicator.

    Parameters

    • newPeriodCount: number

      New period count.

    Returns void

  • Sets the type of the indicator's value label(s).

    Parameters

    Returns void

  • Sets the visibility of the indicator. Hiding the indicator via setVisible(false) does not remove it. Use dispose() to delete any indicator.

    Parameters

    • visible: boolean

      Visibility of the indicator.

    Returns void

  • Programmatically opens the indicator settings menu.

    Returns void