In simple terms
Our MFI14 uses 14 classified flow contributions, requiring 15 completed price candles. A high reading means the positive bucket has a large share of the classified price-volume proxy; a low reading means the negative bucket has a larger share. These are indicator weights, not percentages of buyers, sellers or money entering the market.
On this page
Classify the change in typical price
Typical price TP is the average of a candle’s high, low and close. Compare current TP with the preceding TP: a higher value classifies the current raw flow as positive, a lower value as negative, and an exactly equal value as neither. Both flow buckets contain nonnegative magnitudes. The candle’s open is not an input to this classification. A red candle can therefore contribute positive flow, and a green candle can contribute negative flow.
TP_t = (H_t + L_t + C_t) / 3
Count 14 comparisons and 15 price observations
Each contribution needs the preceding typical price, so 14 contributions require 15 price candles. The first candle in a valid segment supplies only the reference TP. Sum the current contribution and the 13 preceding classified contributions to obtain P14 and N14. The first comparison between two defined MFI readings needs 16 prices; three formed readings need 17. These counts assume the required readings are defined and the source observations meet our continuity policy.
P14_t = P_(t−13) + … + P_t; N14_t = N_(t−13) + … + N_t
Multiply the price level by total base volume
Raw flow F is current TP multiplied by the candle’s total base-asset volume V. It is not the change in TP multiplied by volume. For ETH/USDT, V is measured in ETH and TP in USDT per ETH, so the product has USDT units. It is an approximation based on one candle-level price, rather than the exchange’s recorded quote turnover. Quote volume and taker-buy subsets are different fields. Assigning the entire raw proxy by TP direction does not identify which trades were buyer-initiated or measure net capital flows.
F_t = TP_t × V_t
TP_t > TP_prev ⇒ P_t = F_t; N_t = 0
TP_t < TP_prev ⇒ P_t = 0; N_t = F_t
TP_t = TP_prev ⇒ P_t = 0; N_t = 0
Equal counts of up and down comparisons need not give 50
The synthetic sequence starts at TP of 100, then alternates 110 and 100 for 14 comparisons: 7 upward and 7 downward. With unit volume for every comparison, P14 is 770 and N14 is 700, giving MFI of about 52.38. If only the last downward comparison has volume 10, N14 becomes 1600 while P14 stays 770; MFI becomes about 32.49. The price path is identical. MFI of exactly 50 requires equal positive and negative sums, both nonzero, rather than equal counts. Multiplying every volume by the same positive constant leaves MFI unchanged.
Teaching example: identical prices, different volume weights
| Synthetic case | Final downward volume | P14 · positive proxy sum · USDT | N14 · negative proxy sum · USDT | Money Flow Index · MFI14 |
|---|---|---|---|---|
| Unit volume for all 14 contributions | 1 | 770.00 | 700.00 | 52.38 |
| Volume 10 on the final downward comparison | 10 | 770.00 | 1,600.00 | 32.49 |
Distinguish a zero reading from an empty flow window
Use MFI=100×P14/(P14+N14) when the combined sum is positive. Positive flow without negative flow gives 100; negative flow without positive flow gives 0. Ties and genuine zero-volume candles can contribute nothing, so endpoints do not require every comparison to have the same direction. When both sums are 0, MFI is unavailable here; we do not substitute 0, 50 or a previous value. Constant TP can produce this case even when volume is substantial. The documented TA-Lib convention returns 0 for an empty flow window, so compare platform policies before comparing outputs.
MFI14_t = 100 × P14_t / (P14_t + N14_t); P14_t + N14_t > 0
Teaching example: endpoints and an unavailable window
| Synthetic case | P14 · positive proxy sum · USDT | N14 · negative proxy sum · USDT | Money Flow Index · MFI14 |
|---|---|---|---|
| Increasing TP · unit volume | 1,505.00 | 0.00 | 100.00 |
| Decreasing TP · unit volume | 0.00 | 1,491.00 | 0.00 |
| Constant TP · volume 10 | 0.00 | 0.00 | Unavailable |
| Changing TP · zero volume | 0.00 | 0.00 | Unavailable |
Read a threshold crossing as a change in the indicator
We use strict zones: MFI below 20 and MFI above 80. Exactly 20 or 80 is a boundary. An upward 20 crossing requires a defined previous MFI at or below 20 and a current MFI strictly above 20 on adjacent completed canonical H4 candles. There is no additional upper ceiling. Remaining above 80 is a continuing state. These conditions alone do not specify a trade, a reversal or a profitable rule; unavailable readings cannot be crossed over by using an older value.
MFI_prev ≤ 20; MFI_t > 20
Keep source quality and volume definitions visible
The pinned Binance ETH/USDT spot source contains 14,434 H4 candles from 79 monthly archives. It has 2 missing scheduled candles and 11 rows whose original close label does not equal the final millisecond or microsecond of its scheduled interval. We retain all raw rows. A gap or noncanonical row resets the segment; the next MFI needs 15 consecutive canonical price candles. Close labels use milliseconds or microseconds according to the source period and are interval metadata, not individual execution times. Base volume is present and positive in this dataset. Our replay rejects missing, negative or nonfinite volume instead of inventing a zero. The original ZIP files are not downloaded again.
A completed crossing above 20 on ETH/USDT
The first eligible upward crossing from 2023 onward is available at 2023-02-11 04:00 UTC. MFI rises from 19.04 to 23.87. The current and preceding values establish the crossing; five later observed candles provide context only. S remains on the fixed completed reference candle. The detail panel shows the source volume, raw proxy and rolling P14/N14 sums without treating them as account cash flows.
An upward 20 crossing uses two defined readings
Calendar gap Candles are evenly spaced in observed order. Calendar gaps are compressed and marked by a dashed line. Lines join available observations; no missing candles are added. Volume colours follow TP direction, while candle colours follow close versus open. Outlined candle bodies mark a noncanonical source close label.
Select a candle, move the slider or use arrow keys. OHLC and MFI display two decimals, TP and base volume six, and proxy flows two. S stays on the reference candle; the vertical cursor and details follow your selection. The indicator and volume scales stay fixed. Undefined values are shown as unavailable.
- Interval anchor · UTC
- 2023-02-11 00:00 UTC
- Scheduled interval end · UTC
- 2023-02-11 04:00 UTC
- Original source close label · UTC
- 2023-02-11 03:59:59.999 UTC
- Open
- 1,513.05
- High
- 1,523.58
- Low
- 1,507.53
- Close
- 1,520.38
- Typical price · TP
- 1,517.163333
- Total base volume · ETH
- 49,102.835100
- TP direction versus previous candle
- Higher TP · positive bucket
- Raw TP×V proxy · USDT
- 74,497,020.98
- P14 · positive proxy sum · USDT
- 462,446,121.51
- N14 · negative proxy sum · USDT
- 1,474,517,090.60
- Money Flow Index · MFI14
- 23.87
- Canonical source close label
- Yes
A falling candle can add positive classified flow
At 2023-01-02 00:00 UTC, current TP is 1,201.456667, up from 1,200.723333 USDT per ETH. Yet the close, 1,200.34, is below the open, 1,201.77. Our classification therefore adds the current TP×V proxy to the positive bucket. It does not use the red candle body to classify that flow. MFI itself falls from 68.21 to 63.21: the whole rolling window, including its outgoing contribution, determines the ratio. The volume bar uses TP direction; the price candle uses close versus open.
Candle body colour does not classify the raw flow
Calendar gap Candles are evenly spaced in observed order. Calendar gaps are compressed and marked by a dashed line. Lines join available observations; no missing candles are added. Volume colours follow TP direction, while candle colours follow close versus open. Outlined candle bodies mark a noncanonical source close label.
Select a candle, move the slider or use arrow keys. OHLC and MFI display two decimals, TP and base volume six, and proxy flows two. S stays on the reference candle; the vertical cursor and details follow your selection. The indicator and volume scales stay fixed. Undefined values are shown as unavailable.
- Interval anchor · UTC
- 2023-01-01 20:00 UTC
- Scheduled interval end · UTC
- 2023-01-02 00:00 UTC
- Original source close label · UTC
- 2023-01-01 23:59:59.999 UTC
- Open
- 1,201.77
- High
- 1,204.67
- Low
- 1,199.36
- Close
- 1,200.34
- Typical price · TP
- 1,201.456667
- Total base volume · ETH
- 21,558.991400
- TP direction versus previous candle
- Higher TP · positive bucket
- Raw TP×V proxy · USDT
- 25,902,193.94
- P14 · positive proxy sum · USDT
- 242,961,567.72
- N14 · negative proxy sum · USDT
- 141,402,995.22
- Money Flow Index · MFI14
- 63.21
- Canonical source close label
- Yes
Three completed readings can remain above 80
At 2023-01-10 16:00 UTC, MFI is 88.08. The two preceding readings are 83.64 and 87.07; all three readings through S are strictly above 80. This describes the positive share of the classified proxy, not the share of buyers or actual money inflows. The example is selected by a fixed indicator condition, without looking for a later reversal. No entry, exit, costs or account return are calculated.
The upper zone can persist for several readings
Calendar gap Candles are evenly spaced in observed order. Calendar gaps are compressed and marked by a dashed line. Lines join available observations; no missing candles are added. Volume colours follow TP direction, while candle colours follow close versus open. Outlined candle bodies mark a noncanonical source close label.
Select a candle, move the slider or use arrow keys. OHLC and MFI display two decimals, TP and base volume six, and proxy flows two. S stays on the reference candle; the vertical cursor and details follow your selection. The indicator and volume scales stay fixed. Undefined values are shown as unavailable.
- Interval anchor · UTC
- 2023-01-10 12:00 UTC
- Scheduled interval end · UTC
- 2023-01-10 16:00 UTC
- Original source close label · UTC
- 2023-01-10 15:59:59.999 UTC
- Open
- 1,329.32
- High
- 1,340.90
- Low
- 1,323.07
- Close
- 1,333.97
- Typical price · TP
- 1,332.646667
- Total base volume · ETH
- 90,717.905300
- TP direction versus previous candle
- Higher TP · positive bucket
- Raw TP×V proxy · USDT
- 120,894,914.11
- P14 · positive proxy sum · USDT
- 1,222,150,700.12
- N14 · negative proxy sum · USDT
- 165,362,374.21
- Money Flow Index · MFI14
- 88.08
- Canonical source close label
- Yes
Preserve precision and distinguish unavailable observations
Original prices and volumes are represented as integers scaled by 100000000; direction and threshold tests use exact rational arithmetic. We make no claim of bit-for-bit platform parity: some implementations use near-equality tolerances. OHLC prices display two decimals, TP and base volume six, proxy flows two, and MFI two. Rounded equality does not decide a comparison. Candles are evenly spaced in observed order; calendar gaps are compressed and marked. Lines join available observations and break at unavailable values. The MFI axis stays at 0–100 and the volume scale stays fixed while selecting candles.
Replay the guide before adding trading rules
For each case we select the first distinct matching H4 candle starting on or after 2023-01-01 UTC. The selected candle and its 16 predecessors must be adjacent and canonical, supporting three formed MFI14 readings. Five later observed candles are required for display; their prices, volume, quality and returns do not rank the selection. These are retrospective examples from a source already used in another strategy. Downloads include the pinned inputs, CSV and separate replay and independent-check scripts. A funded strategy would additionally need explicit execution, exits, position sizes and costs.
python3 mfi-guide-replay.py --protocol mfi-guide-protocol.json --source-evidence eth-wr-evidence.json --output replay.json python3 mfi-guide-independent-check.py --protocol mfi-guide-protocol.json --source-evidence eth-wr-evidence.json --evidence replay.json --report check.json
Frequently asked questions
Does a high MFI mean that more money entered than left the market?
No. MFI allocates candle-level TP×volume proxies according to changes in TP. Every matched trade has both a buyer and a seller. The indicator does not measure net capital entering an asset or identify the aggressor of every trade.
Why can a red candle produce positive flow?
Candle body colour compares the close with the open. This MFI definition compares current typical price with the previous typical price. Those comparisons can disagree, so body colour does not determine the flow bucket.
What happens when typical price is unchanged or volume is zero?
An equal TP comparison contributes to neither bucket. A genuine zero-volume candle also contributes zero and remains a valid price predecessor. If all 14 contributions leave P14=N14=0, MFI is unavailable here. Missing volume is a different problem; we reject it rather than replace it with zero.
Is MFI simply the same RSI with a volume label?
No. MFI sums typical-price levels multiplied by volume after directional classification. RSI uses price changes with its chosen averaging convention. They can disagree even when volume is constant; matching the period alone does not make their readings identical.
Does MFI above 80 specify a sell time?
No. It describes an upper-zone reading under the stated formula and window. It can persist for several completed candles. A trade needs separate rules and a test of execution costs and risk.
Is this Bill Williams’ Market Facilitation Index?
No. This guide concerns the Money Flow Index. Bill Williams’ Market Facilitation Index is a different calculation based on the candle’s high–low range divided by volume. The shared abbreviation MFI does not make them the same indicator.
Primary sources
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.