Independent market intelligence
Research over noise · Risk before return
CRYPTO INDICATOR GUIDE

Money Flow Index: typical price, volume and the 20/80 zones

The Money Flow Index combines typical price and trading volume. Three ETH/USDT H4 examples explain a crossing above 20, a positive flow contribution on a falling candle and a continuing upper-zone state. The indicator is a price-volume calculation, not a record of capital entering or leaving an asset.

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
01

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

02

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

03

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

04

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 caseFinal downward volumeP14 · positive proxy sum · USDTN14 · negative proxy sum · USDTMoney Flow Index · MFI14
Unit volume for all 14 contributions1770.00700.0052.38
Volume 10 on the final downward comparison10770.001,600.0032.49
Synthetic TP starts at 100 and then alternates 110/100 for 14 comparisons. Seven upward and seven downward contributions produce P14 of 770 and N14 of 700 with unit volume. Increasing only the last downward volume to 10 changes N14 to 1600. The first price is a reference, not a fifteenth contribution. In these teaching examples, TP is in USDT per ETH and volume in ETH.
05

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 caseP14 · positive proxy sum · USDTN14 · negative proxy sum · USDTMoney Flow Index · MFI14
Increasing TP · unit volume1,505.000.00100.00
Decreasing TP · unit volume0.001,491.000.00
Constant TP · volume 100.000.00Unavailable
Changing TP · zero volume0.000.00Unavailable
Each synthetic case has 15 prices and 14 comparisons. With unit volume, TP rising in steps of one from 100 to 114 gives MFI 100; the reverse path from 114 to 100 gives 0. Constant TP of 100 with volume 10, or the rising path with zero volume, leaves both sums at 0 and MFI unavailable under this guide’s policy.
06

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

07

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.

08

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

An upward 20 crossing uses two defined readingsCandles 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.ETH/USDT spot · USDT per ETHTP1,469.211,531.581,593.961,656.331,718.70Money Flow Index · MFI140205080100Total base volume · ETH · TP direction colours098,020196,039S2023-02-06 20:002023-02-11 00:002023-02-11 20:00

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
First eligible case, available 2023-02-11 04:00 UTC. Actual ETH/USDT candles and TP are above, MFI14 is in the middle and base-asset volume in ETH is below. S marks the completed reference candle. The later candles are context.
09

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

Candle body colour does not classify the raw flowCandles 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.ETH/USDT spot · USDT per ETHTP1,176.741,189.711,202.681,215.641,228.61Money Flow Index · MFI140205080100Total base volume · ETH · TP direction colours039,83379,666S2022-12-28 16:002023-01-01 20:002023-01-02 16:00

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
First eligible case, available 2023-01-02 00:00 UTC. At S, TP is higher than on the preceding candle, while the close is below the open. The positive flow classification colours the volume bar; the price body remains a down candle. The rolling MFI ratio can still decline.
10

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

The upper zone can persist for several readingsCandles 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.ETH/USDT spot · USDT per ETHTP1,224.831,258.341,291.851,325.351,358.86Money Flow Index · MFI140205080100Total base volume · ETH · TP direction colours083,806167,612S2023-01-06 08:002023-01-10 12:002023-01-11 08:00

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
First eligible case, available 2023-01-10 16:00 UTC. MFI14 remains strictly above 80 on three adjacent completed candles through S. This is a descriptive indicator state, without assuming an order or a later reversal.
11

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.

12

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

Download data and reproduction files

Created by the MyProfitFactor editorial team.

Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.