MQL4 - automated forex trading   /  

Code Base

Code Base  Indicators  Money Flow Index, MFI To post a new code, please log in or register

Download MetaTrader 5 and visit MQL5.community Code Base
and Trade on the Go!
Prepare for the Championship
Couldn't find the right code? Order it in the Jobs section

This library is for
MetaTrader 4
Download MT 4 - 455 Kb

and Trade on the Go!

Name:
Money Flow Index, MFI
Author: MetaQuotes (2005.12.21 15:14)
Downloaded: 5131
Download:
 MFI.mq4 (2.7 Kb) View
 mfi.gif (8.7 Kb)


    Money Flow Index (MFI) is the indicator, which indicates the rate at which money is invested into a security and then withdrawn from it. Construction and interpretation of the indicator is similar to Relative Strenght Index with the only difference that volume is important to MFI.

    When analyzing the money flow index one needs to take into consideration the following points:

  • divergences between the indicator and price movement. If prices grow while MFI falls (or vice versa), there is a great probability of a price turn;

  • Money Flow Index value, which is over 80 or under 20, signals correspondingly of a potential peak or bottom of the market.

    Calculation

    The calculation of Money Flow Index includes several stages. At first one defines the typical price (TP) of the period in question.

    TP = (HIGH + LOW + CLOSE)/3

    Then one calculates the amount of the Money Flow (MF):

    MF = TP * VOLUME

    If today’s typical price is larger than yesterday’s TP, then the money flow is considered positive. If today’s typical price is lower than that of yesterday, the money flow is considered negative. A positive money flow is a sum of positive money flows for a selected period of time.A negative money flow is the sum of negative money flows for a selected period of time.

    Then one calculates the money ratio (MR) by dividing the positive money flow by the negative money flow:

    MR = Positive Money Flow (PMF)/Negative Money Flow (NMF)

    And finally, one calculates the money flow index using the money ratio:

    MFI = 100 - (100 / (1 + MR))

Technical Indicator Description

Full description of MFI is available in the Technical analysis: Money Flow Index

0 comments  To post a new comment, please log in or register