Entered high-low-close-volume · rolling flow ratio

Money Flow Index Calculator

Calculate MetaQuotes-compatible positive flow, negative flow, money ratio and MFI from ordered entered bars.

Runs in your browserMetaQuotes zero-flow conventionNo 20/80 or divergence label

Enter ordered high-low-close-volume bars

Use one symbol, timeframe, broker feed and volume type for every row.

Entered

One row per line. Commas, semicolons or tabs are accepted. Volume may be zero but cannot be negative.

MFI boundary: When negative flow is zero, the published MetaQuotes implementation returns MFI 100—even when positive and negative flow are both zero. The page displays this convention without calling it overbought.

Current entered-window Money Flow Index

Entered Volume Indicators 1.0.0.

Derived
No MFI calculated yetEnter at least period plus one ordered bars, or load the audited example.

How Money Flow Index is calculated

Typical price = (high + low + close) ÷ 3
Raw money flow = typical price × volume
Money ratio = positive flow sum ÷ negative flow sum
MFI = 100 − 100 ÷ (1 + money ratio)

Each raw flow is positive when the current typical price exceeds the prior typical price, negative when it is lower, and excluded from both sums when equal. Each reported value uses the latest N price-to-price flow observations.

The published MetaQuotes implementation returns 100 whenever the negative-flow sum is zero. Version 1.0.0 preserves that behavior and marks the ratio undefined instead of dividing by zero.

Assumptions and limits

  • At least N plus one bars are required because N flow comparisons need a preceding typical price.
  • All rows must use one symbol, timeframe, broker feed and consistent volume type.
  • Spot-forex tick volume is a price-change count, not centralized traded volume.
  • Equal typical prices contribute to neither positive nor negative flow.
  • MFI values and common level references are not entry, exit, reversal or divergence signals.

Worked example from the audited fixture

Reproduce it with “Load audited example”The seven-bar fixture uses period 3. In the latest window, positive raw money flow sums to 4,373.333333 and negative flow sums to 1,680. Their ratio is 2.603175, so MFI = 100 − 100 ÷ (1 + 2.603175) = 72.246696.

How to interpret the result

The calculation classifies each entered raw flow by the direction of typical-price change, then compares rolling sums. A value of 72.246696 is not labelled overbought or predictive, and feed volume conventions can materially change it.

Frequently asked questions

  • Enter at least period plus one ordered high-low-close-volume bars from one consistent symbol, timeframe, feed and volume type.
  • The entered high, low and close are added and divided by three.
  • Typical price is multiplied by the entered volume for that row.
  • A higher typical price creates positive flow, a lower typical price creates negative flow, and an equal typical price enters neither sum.
  • A period of N needs N price-to-price flow comparisons, and the first comparison needs one preceding typical price.
  • The published MetaQuotes implementation returns MFI 100. Version 1.0.0 preserves that convention and marks the ratio undefined.
  • MetaQuotes still returns 100 because its negative-flow denominator is zero; the page states this edge case without a market label.
  • No. The page does not classify levels, divergence, reversal, direction, entries or exits.

Sources and methodology

Compare the chart feed and trading terms

Confirm whether your platform supplies tick or real volume for the selected instrument, and keep the same feed and volume type across every entered observation.

XM

Review available instruments, chart-volume fields and account terms.

Check XM terms

FBS

Compare symbol specifications and chart-feed conventions for your region.

Check FBS terms

FXOpen

Confirm volume type, price precision and trading conditions for the symbol.

Check FXOpen terms

Risk and affiliate disclosure: Leveraged forex and CFD trading can result in substantial losses. These are affiliate links, so ForexMT4Indicators.com may receive compensation if you register or trade through them, at no additional cost to you. Availability and terms vary by jurisdiction and broker entity.

Disclaimer: The results from this tool are estimates for educational and informational purposes only and may differ from your broker's figures. This is not financial or investment advice. Trading forex and CFDs carries a high level of risk and can result in the loss of all your capital. Always verify calculations with your broker and trade within your risk tolerance.