Money Flow Index
systemic:core-mfiIndicatorsInputs
| Name | Type | Description |
|---|---|---|
| Window | Whole number | The number of bars used to sum the positive and negative money flow. |
| Price High | Number series | The highest price of each bar. |
| Price Low | Number series | The lowest price of each bar. |
| Price Close | Number series | The closing price of each bar. |
| Volume | Number series | The trading volume of each bar: the total quantity of the asset traded. |
Outputs
| Name | Type | Description |
|---|---|---|
| Mfi | Number series | The Money Flow Index of each bar, an oscillator between 0 and 100. |
Cost
0.215 + 0.00627·n credits for n bars, rounded up. The marks are each plan's limit of bars.
The Problem RSI Couldn't Solve
In the 1980s, J. Welles Wilder's RSI was the most popular momentum oscillator. But two technical analysts, Gene Quong and Avrum Soudack, noticed a problem.
Consider two price movements:
- Stock rises 5% on 50% below-average volume
- Stock rises 5% on 200% above-average volume
RSI shows identical values for both. But these are very different situations. The first may be a weak drift. The second suggests that large investors are buying.
Quong and Soudack's insight: Volume is the missing variable.
In the late 1980s, they created the Money Flow Index: in essence, RSI with volume included. MFI tracks not only price momentum but also where the money is flowing.
💡 MFI answers the question RSI can't: "Is real money backing this move?"
Why This Matters
Traditional momentum oscillators measure speed. MFI measures conviction.
| Scenario | Price Change | Volume | RSI Says | MFI Says |
|---|---|---|---|---|
| Weak rally | +3% | Low | "Momentum up" | "Weak—no conviction" |
| Strong rally | +3% | High | "Momentum up" | "Strong—money flowing in" |
| Distribution | +1% | Very high | "Slight momentum" | "Smart money selling" |
This volume context makes MFI useful for:
- Spotting divergences between price and money flow
- Confirming breakouts with real buying pressure
- Identifying distribution (smart money exiting) before price drops
Mathematical Foundation
Step 1: Typical Price
The Typical Price is the average price of each bar.
Step 2: Raw Money Flow
This is the money value traded during the bar.
Step 3: Classify Money Flow
| Condition | Classification |
|---|---|
| TP > Previous TP | Positive Money Flow |
| TP < Previous TP | Negative Money Flow |
| TP = Previous TP | Neutral (not counted in either sum) |
Step 4: Money Flow Ratio
Summed over the window (typically 14 bars).
Step 5: Money Flow Index
This puts the ratio on a 0-100 scale, where:
- Higher values indicate more buying pressure
- Lower values indicate more selling pressure
Visual Calculation Flow
flowchart TB
subgraph INPUT["📥 OHLCV Data"]
H["High"]
L["Low"]
C["Close"]
V["Volume"]
end
subgraph CALC1["🧮 Typical Price"]
TP["TP = (H + L + C) / 3"]
end
subgraph CALC2["💰 Raw Money Flow"]
RMF["RMF = TP × Volume"]
end
subgraph CLASS["📊 Classify"]
POS["Positive Flow<br/>(TP rising)"]
NEG["Negative Flow<br/>(TP falling)"]
end
subgraph RATIO["📈 Money Flow Ratio"]
MFR["Sum Positive / Sum Negative"]
end
subgraph OUTPUT["🎯 MFI Output"]
MFI["100 - 100/(1 + MFR)"]
end
H --> TP
L --> TP
C --> TP
TP --> RMF
V --> RMF
RMF --> POS
RMF --> NEG
POS --> MFR
NEG --> MFR
MFR --> MFI
style OUTPUT fill:#d5f5e3,stroke:#27ae60
Interpreting MFI
Standard Thresholds
| MFI Level | Interpretation |
|---|---|
| > 80 | Overbought — potential selling pressure ahead |
| 50 | Neutral — balanced buying/selling |
| < 20 | Oversold — potential buying pressure ahead |
MFI vs Price Divergence
| Divergence Type | Price | MFI | Signal |
|---|---|---|---|
| Bullish | Lower lows | Higher lows | Smart money accumulating |
| Bearish | Higher highs | Lower highs | Smart money distributing |
Divergences are strong signals with MFI, because they show that the volume does not support the price direction.
Trading Strategies
Strategy 1: Overbought/Oversold
The classic mean-reversion approach.
| Condition | Action |
|---|---|
| MFI crosses below 20 from above | Potential buy signal |
| MFI crosses above 80 from below | Potential sell signal |
Best in: Range-bound markets. Avoid in: Strong trends.
Strategy 2: Failure Swings
More reliable than simple threshold crosses.
Bullish Failure Swing:
- MFI falls below 20
- MFI rallies above 20
- MFI pulls back but stays above 20
- MFI breaks above its prior high → Buy signal
Bearish Failure Swing:
- MFI rises above 80
- MFI falls below 80
- MFI bounces but stays below 80
- MFI breaks below its prior low → Sell signal
Strategy 3: Volume Confirmation
Use MFI to confirm price breakouts.
| Scenario | MFI Behavior | Interpretation |
|---|---|---|
| Price breaks resistance | MFI rising toward 80 | Strong breakout — volume confirms |
| Price breaks resistance | MFI falling or flat | Weak breakout — lack of conviction |
MFI vs Related Indicators
| Indicator | Uses Volume? | Scale | Best For |
|---|---|---|---|
| MFI | ✅ Yes | 0-100 | Volume-confirmed reversals |
| RSI | ❌ No | 0-100 | Pure price momentum |
| CMF | ✅ Yes | -1 to +1 | Accumulation/distribution |
| OBV | ✅ Yes | Unbounded | Trend confirmation |
| A/D Line | ✅ Yes | Unbounded | Long-term accumulation |
When to Choose MFI
- You want overbought/oversold signals backed by volume
- You suspect price moves aren't supported by real money flow
- You want to confirm breakouts with volume conviction
Configuration
Window Parameter
| Window | Effect | Use Case |
|---|---|---|
| 7 | More responsive, more signals | Short-term trading, volatile assets |
| 14 (standard) | Balanced | Most situations |
| 21 | Smoother, fewer signals | Swing trading, less noise |
Input Requirements
| Input | Description |
|---|---|
| High | Highest price of the bar |
| Low | Lowest price of the bar |
| Close | Closing price of the bar |
| Volume | Trading volume of the bar |
Note: All four inputs should come from the same symbol and the same period.
When MFI Excels
Ranging Markets
- Overbought/oversold signals work well
- Mean reversion trades have volume confirmation
- Failure swings provide clear reversal setups
Breakout Confirmation
- High MFI during breakout = volume conviction
- Low MFI during breakout = likely false breakout
Divergence Trading
- Volume-backed divergences are more reliable than price-only
- Reveals accumulation/distribution before price moves
- "Smart money" patterns become visible
Multi-Asset Comparison
- Same 0-100 scale across all assets
- Easy to compare buying pressure across a portfolio
When MFI Struggles
Strong Trends
- Stays overbought during powerful uptrends
- Stays oversold during powerful downtrends
- Overbought ≠ "sell" in a bull market
No Volume Data
- Not usable for forex spot (no centralized volume)
- Crypto volume varies by exchange
- Some indices lack meaningful volume
Choppy Markets
- Generates many false signals
- Whipsaws around thresholds
- Requires additional filters
Lagging Nature
- Based on historical data
- Signals come after moves start
- Not predictive—reactive
Summary
| Aspect | Detail |
|---|---|
| Full Name | Money Flow Index |
| Inventors | Gene Quong & Avrum Soudack (late 1980s) |
| Core Idea | RSI + Volume = Money conviction |
| Formula | where MFR = Positive Flow ÷ Negative Flow |
| Range | 0 to 100 |
| Overbought | > 80 |
| Oversold | < 20 |
| Requires | High, Low, Close, Volume |
| Standard Window | 14 |
| Best For | Volume-confirmed reversals, divergences |
| Weakness | Fails in strong trends, needs volume data |
Combining MFI with Other Modules
| Combination | Purpose |
|---|---|
| MFI + RSI | Compare volume-weighted vs pure momentum |
| MFI + MACD | Volume confirmation of momentum signals |
| MFI + Moving Averages | Keep only MFI signals in the trend direction |
| MFI + Price Patterns | Confirm breakouts from chart patterns |
Data Alignment in Systemic
MFI takes four series (High, Low, Close, Volume). Systemic aligns them by time before the calculation.
Multi-Input Alignment
When the connected series have different periods or lengths, Systemic aligns them automatically:
| Scenario | Behavior |
|---|---|
| Different periods | The series with the longer period repeats its last value until its next bar |
| Different lengths | The result covers the dates that all four series share |
| Mixed sources | All inputs are aligned to the series with the shortest period |
Example: If you connect daily High/Low/Close with hourly Volume:
- The daily prices are repeated on the hourly bars
- Each daily value repeats for all 24 hourly bars
- The MFI calculation uses the aligned series
Critical Alignment Note
⚠️ All four inputs should come from the same data source and the same period. Systemic aligns mismatched inputs, but mixing periods can give misleading MFI values: Volume and Price from different periods do not describe the same market activity.
Window Parameter
The window parameter is a constant: one fixed value for the whole run.
Missing Data (Closed-Market Bars)
A bar that misses any of High, Low, Close or Volume (a weekend, holiday or data gap) is a missing bar. MFI is empty on that bar. It never repeats an earlier value. The direction of the typical price and both money-flow sums use the N most recent bars that have data, so Friday and Monday count as neighbours and a gap does not distort the ratio. A window where the typical price rises on every bar gives 100.0 (there is no negative flow). MFI is empty only when the window has no rising or falling bar at all (a fully flat run), or when there are fewer than N bars with data (warm-up).
Indicator Profile
This chart compares how useful MFI is for stocks and for cryptocurrencies:
quadrantChart
title MFI Indicator Profile
x-axis Low Popularity --> High Popularity
y-axis Low Reliability --> High Reliability
quadrant-1 High potential
quadrant-2 Established leaders
quadrant-3 Niche tools
quadrant-4 Popular but risky
MFI - Stocks: [0.65, 0.70]
MFI - Crypto: [0.55, 0.60]
Dimension Ratings
| Dimension | Stocks | Crypto | Notes |
|---|---|---|---|
| Popularity | 6.5/10 | 5.5/10 | Well-known among volume-focused traders. Less popular than RSI or MACD. |
| Reliability | 7.0/10 | 6.0/10 | Volume confirmation adds value. Crypto volume varies by exchange. |
| Complexity | 5.0/10 | 5.0/10 | Requires understanding of typical price and money flow concepts. |
| Versatility | 6.0/10 | 5.5/10 | Requires volume data—limited for forex. Works across timeframes. |
| Recent Interest | 5.5/10 | 6.0/10 | Steady classic indicator. Gaining interest in crypto for smart money detection. |
Further Reading
- Investopedia: Money Flow Index — Comprehensive overview
- MFI Trading Strategies — Practical applications
- Typical Price Explained — Understanding the building block
- Volume Analysis — Why volume matters