Back to Guides
Guide

The Money Flow Index Formula, and Its Volume Problem

The Money Flow Index formula in four steps, what its volume input really means on a currency pair, and how to test the indicator on your own data.

The Money Flow Index is a 0 to 100 oscillator built in four steps: typical price, raw money flow, the ratio of positive to negative money flow over 14 periods, and then the RSI formula applied to that ratio. The whole thing hangs on one input, volume, and spot forex does not have that input in the form a stock exchange does.

What is the Money Flow Index?

A momentum oscillator that asks what RSI asks about price, with volume added. StockCharts puts the family resemblance in its opening line: "The Money Flow Index (MFI) is an oscillator that uses price and volume to measure buying and selling pressure. Created by Gene Quong and Avrum Soudack, MFI is also known as volume-weighted Relative Strength Index (RSI)."

Alchemy Markets dates it and names what it grew out of: "The MFI was developed by Gene Quong and Avrum Soudack in the early 1990s as an evolution of the Relative Strength Index (RSI)." DayTrading.com uses the same shorthand, writing that the indicator "is synonymous with "volume-weighted RSI"".

So: an RSI with volume inside it, bounded between 0 and 100, read for extremes rather than for trend direction. On the centreline, StockCharts says: "Even though MFI is considered a volume-weighted RSI, using the centerline to determine a bullish or bearish bias isn't ideal."

What is the Money Flow Index formula?

Four steps, exactly as StockCharts prints them:

Typical Price = (High + Low + Close)/3
Raw Money Flow = Typical Price x Volume
Money Flow Ratio = (14-period Positive Money Flow)/(14-period Negative Money Flow)
Money Flow Index = 100 - 100/(1 + Money Flow Ratio)

Money flow is positive when the typical price is higher than the period before and negative when it is lower. StockCharts adds the case most write-ups skip: "The Raw Money Flow values are not used when the typical price is unchanged."

A worked example with round numbers. It is an example, not a reading from any chart. A bar with a high of 1.1030, a low of 1.0990 and a close of 1.1010 has a typical price of 1.1010. If the volume figure for that bar is 1,000, raw money flow is 1,101. If the fourteen bars behind you summed to 9,000 of positive money flow and 3,000 of negative, the ratio is 3, and the index reads 100 - 100/(1 + 3), which is 75.

Is the Money Flow Index in ChartLabs?

Yes. Open the chart's Indicators menu, go to the Standard list, and Money Flow Index is under the Volume heading. It opens in its own pane under price, with that pane's scale pinned to 0 and 100.

Its one setting is Length, 14 by default. It draws no 80 or 20 lines of its own, so those stay yours to mark. A window in which every bar has 0 volume reads 0, which looks like the deepest oversold reading there is, so check the volume before you trust a low one.

Does the Money Flow Index work on forex?

The formula needs a volume figure, and in spot forex there is no single market-wide volume figure to put there. What a platform shows instead is usually a count of price updates at one broker.

DayTrading.com says so outright: "It should be noted that on many charting platforms volume data is not kept for currency pairs. Without volume, the money flow index will not plot on the charts accordingly." The same page adds a practical limit: "Volume is often not kept on charting software platforms below the daily level, so the MFI may need to be used on the daily time compression or higher (e.g., weekly, monthly)."

The reason sits in how the market is built. Trading Wyckoff states it plainly: "each broker is its own market, with no central book consolidating real total volume per pair. That data doesn't exist". It also points out that MetaTrader stores the two things in separate fields, tick_volume and real_volume, and that in forex the real volume field "is empty or zero, while tick_volume is always populated".

FXGlory says what the figure you do get usually counts: "Most retail spot forex volume is not total centralized market volume; it is usually tick volume or broker/platform-specific activity", and "Tick volume counts price changes during a selected period, not total traded money across the global forex market." AMarkets describes the same substitution: "Since true trading volume is unavailable, most brokers provide tick volume instead. It measures the number of price updates that occur during a specific period."

Where the volume term in Typical Price x Volume is a count of price updates, it rises with how often the price moved rather than with how much was traded when it moved, and it reflects only what one feed saw. That number does not measure what the formula's authors had in a stock, and the same MFI setting on the same pair can read differently on two platforms.

Two of the sources answer the asset-class question in opposite directions:

SourceWhat it says about MFI outside stocks
strike.money"The MFI was designed primarily for use in equity markets. It can also be used with other financial instruments, such as currency or commodities, but the results are not always as favourable"
alchemymarkets.com"Yes, the MFI is effective across a wide range of asset classes, including stocks, forex, cryptocurrencies, and commodities"

Neither page tested the claim it makes. Alchemy does add a condition: its accuracy "may decline in low-liquidity environments or assets with inconsistent volume". Elsewhere on the same page it says MFI "tends to misfire in low-volume or sideways markets".

What volume do ChartLabs charts show?

Volume is on the chart. The legend, the open, high, low and close readout for the bar under your cursor, always shows that bar's volume. A Volume indicator can be added from the Indicators menu and opens in its own pane under price, and it is off by default. On-Balance Volume, Volume Ratio and Price Volume Trend are in the Indicators menu too.

Our price data is sourced from Dukascopy, tick-level where it is available, cleaned to remove anomalies. What the volume figure counts depends on what that data holds for the symbol you are looking at, and a bar with no volume in the data shows 0. So treat it the way those pages treat any forex volume series: check it on the symbol and timeframe you plan to test, and write down what you found before you write down a result.

The built-in Money Flow Index runs on the same volume figures the legend shows, so whatever you find in that check is what the indicator is reading. There is no automatic backtesting, so the testing stays manual: you step the chart forward bar by bar and take the trades yourself.

How do you read the Money Flow Index?

Above 80 is treated as overbought and below 20 as oversold. DayTrading.com describes the default plot: "The green line occurs at 80 while the red line occurs at 20."

StockCharts then warns about the obvious failure mode: "Strong trends can present a problem for these classic overbought and oversold levels. MFI can become overbought (>80) and prices can simply continue higher when the uptrend is strong."

Its answer is the authors' stricter pair of levels: "Quong and Soudack recommended expanding these extremes to further qualify signals. A move above 90 is truly overbought, and a move below 10 is truly oversold. Moves above 90 and below 10 are rare occurrences that suggest a price move is unsustainable." StockCharts also names what that costs: "many stocks will trade for a long time without reaching the 90/10 extremes."

DayTrading.com names a looser variant for quiet instruments, suggesting "a 25-75 band instead of 20-80 band for oversold/overbought readings", and adds that if you relax the criteria too far "the signals may become less statistically significant".

So three published band pairs, 20/80, 10/90 and 25/75, with no published test behind any of them that you could apply to your own instrument.

StockCharts also defines the two patterns people look for beyond the bands, divergence and the failure swing. The failure swing states when a setup stops counting: "A bullish failure swing occurs when MFI becomes oversold below 20, surges above 20, holds above 20 on a pullback, and then breaks above its prior reaction high."

What are the best settings for the Money Flow Index?

14 periods, which StockCharts calls "the default setting in SharpCharts and the setting recommended by the creators".

Shorter makes it jumpier, longer makes it smoother. StockCharts: "A shorter timeframe makes the indicator more sensitive. A longer timeframe makes it less sensitive." Alchemy Markets names the two alternatives traders usually reach for, 7 periods for sensitivity and 21 for smoother readings, and says the choice should follow the asset class and the strategy.

The timeframe may be decided for you: if your platform keeps no volume below the daily bar, as DayTrading.com describes, the setting question is moot until you have checked what your chart actually plots.

If you do change 14, change one thing. Keep the same rules and the same period, and write down the signal count each time. Changing several inputs at once and keeping the best-looking result is how a test turns into a fit.

What is the difference between the Money Flow Index and RSI?

Two differences.

First, the inputs. MFI multiplies typical price by volume before comparing rises with falls. RSI compares price changes alone. Everything else about the two formulas is the same shape, which is why StockCharts calls MFI a volume-weighted RSI.

Second, the usual bands. Alchemy Markets: "RSI typically uses the 70/30 range, while MFI uses a wider 80/20 range, making MFI more sensitive to volume-backed extremes."

Where RSI needs only price, MFI needs a volume series as well, so on a pair it inherits whatever volume series your data carries. Two traders running RSI 14 on the same EUR/USD prices get the same line. Two traders running MFI 14 on the same prices with different volume series may not.

How is the Money Flow Index different from Chaikin Money Flow?

Three differences, from Alchemy Markets' own comparison.

MFI multiplies the typical price of a candle by volume, then compares inflows with outflows over the lookback period. Chaikin Money Flow instead "looks at where the price closes within the candle's range", multiplies that by volume, and sums it over the period. And where MFI is bounded between 0 and 100, CMF is not.

Both still need a volume series, so the forex volume problem applies to both.

Has anyone tested the Money Flow Index?

Not in a form you can lift and reuse. Published MFI results come with different rule sets, different timeframes and different ways of counting a winner, so two figures from two write-ups are rarely measuring the same thing, and a figure with no signal count beside it tells you nothing about whether it would repeat.

strike.money ends where that leaves you: "practise and backtest Money Flow Index strategies before using these methods in actual trading scenarios".

How do you backtest the Money Flow Index yourself?

Seven decisions, all made and written down before the first trade.

  1. Settle the data question. Write down what the volume on your chart is and where it came from. An MFI reading is not comparable with an MFI reading built on a different volume series, so this line belongs in your notes before any result does.
  2. Choose one signal: the 20 and 80 crosses, or a failure swing, or divergence. Not all three. A test of three signals at once cannot tell you which one did the work.
  3. Fix the entry bar, the signal bar or the one after it, decided in advance. That detail changes every number downstream.
  4. Fix the cancellation condition. StockCharts' failure swing is the clearest published example of a rule that says when a setup stops counting. Without one you will judge borderline cases inconsistently and never notice.
  5. Pick the period before you look at the chart. Choosing dates after seeing where the indicator worked tests your memory, not your rules.
  6. Set your costs before the first trade. In ChartLabs, commission and slippage are set per symbol, and every trade's P&L, balances and analytics reflect them. A zero-cost test of a mean-reversion signal that fires often flatters it badly.
  7. Count the signals, not just the result. The number the period produced is what makes everything else comparable.

Alongside those, the record you keep is what makes the test repeatable: the symbol and timeframe, what the volume figure was and where it came from, both dates of the period, the MFI period, which band or pattern you traded, which bar you entered on, what cancelled a setup, how many signals the period produced, and the result with commission and slippage already in it.

Do not compare a percentage return that has no signal count next to it with anything, your own earlier test included. And do not compare an MFI test run on one volume series with one run on another, because the formula's second input was not the same series.

Our charts have drawing tools and built-in indicators, you can add your own custom indicators from the Indicators menu, and you can write your own in Pine Script in a built-in editor, where the Examples on the Pine Scripts tab are a starting point. Drawings and sub-panel indicators save as you work, and each indicator instance can be styled separately, so the layout you tested with is the one you come back to.

Our forex backtesting guide covers the surrounding method, including how many trades a result needs before it means anything. Backtesting accuracy covers why costs and data quality move results more than most people expect, and our trading simulator is the bar-by-bar stepping this kind of test needs.

Start a free trial and settle the volume question on your own chart before you settle the settings question.

Related Topics

money-flow-indexindicatorsvolumebacktestingforex