Money Flow Index Calculator
Calculate MetaQuotes-compatible positive flow, negative flow, money ratio and MFI from ordered entered bars.
Enter ordered high-low-close-volume bars
Use one symbol, timeframe, broker feed and volume type for every row.
One row per line. Commas, semicolons or tabs are accepted. Volume may be zero but cannot be negative.
Current entered-window Money Flow Index
Entered Volume Indicators 1.0.0.
| Label | Typical price | Volume | Flow relation | Raw flow | Positive sum | Negative sum | MFI |
|---|
How Money Flow Index is calculated
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
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
- MetaQuotes Code Base — Money Flow Index — Published rolling loop and zero-negative-flow return convention.
- MetaTrader 5 Help — Money Flow Index — Official typical-price, flow, ratio and MFI formulas.
- MQL5 Reference — iMFI — Official period and applied-volume interface.
Continue entered indicator analysis
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.
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.

