In simple terms
After MFI recovers through 20, we buy at the next scheduled opening only when the completed close is above EMA200. A fixed stop, target and time limit govern the exit. These are hypothetical, cash-funded spot accounts; the calculations test a defined rule and do not establish future profitability.
On this page
What are we testing?
MFI combines changes in typical price with reported trading volume. We ask whether an MFI14 recovery through 20, together with a close above EMA200, produces a useful Bitcoin spot rule after costs. We fixed the specification before calculating this study on 12 November 2026. The dates had already passed: the full 2020–2025 account and independent 2020–2022 and 2023–2025 accounts are retrospective evaluations, with no parameter search or prospective test claim.
One venue, native candles and disclosed gaps
The inputs are official Binance BTCUSDT spot archives: 79 H4 source files and 14,434 observed candles including warm-up from June 2019. Volume is base-asset BTC from this venue, rather than all Bitcoin trading. We retain 2 missing scheduled bars and 11 nonstandard source-close timestamps. No candle is invented. Signals become available at the scheduled four-hour cutoff, even when source metadata reports an earlier close. The table separates warm-up and evaluated observations.
Retained input checks
- Verified monthly H4 source files
- 79
- Observed H4 candles including warm-up
- 14,434
- Observed evaluated H4 candles
- 13,151
- Missing scheduled H4 candles
- 2
- Nonstandard close timestamps
- 11
- Duplicate timestamps
- 0
- Invalid input rows
- 0
H4 observations include June–December 2019 warm-up. Archive hashes and original close metadata are retained; neither gaps nor early source closes are repaired into invented candles.
| First missing opening · UTC | Missing H4 slots |
|---|---|
| 2019-08-15 04:00 | 1 |
| 2020-02-19 12:00 | 1 |
Indicators continue across observed bars under the frozen convention. The next scheduled entry still must exist.
MFI14: price direction weighted by volume
For each completed bar, typical price is the mean of high, low and close. Multiply typical price by that bar's BTC volume. Add the result to positive flow when typical price rises from the preceding observed bar, to negative flow when it falls, and to neither when it is unchanged. MFI uses the latest 14 observed comparisons, including the signal bar. One-sided positive flow gives 100; one-sided negative flow gives 0. An incomplete window or zero total flow is undefined and cannot signal. This transformation does not measure deposits or net cash entering Bitcoin.
TP_t = (H_t + L_t + C_t) / 3
Flow_t = TP_t × BTC_volume_t
MFI14 = 100 × Σ positive_flow / (Σ positive_flow + Σ negative_flow)
EMA200, ATR14 and observations across gaps
EMA200 starts with the mean of the first 200 observed closes, then uses a weight of 2/201 on each new close. ATR14 starts with the mean of the first 14 true ranges and then uses Wilder smoothing. The first true range is high minus low. Both recursions continue across observed bars; MFI likewise uses observed comparisons. We preserve missing time slots instead of filling them. Indicator calculations are not rounded before entry tests, and each period uses earlier warm-up without simulating earlier account positions.
EMA_t = EMA_(t−1) + (2/201) × [C_t − EMA_(t−1)]
TR_t = max[H_t − L_t, |H_t − C_(t−1)|, |L_t − C_(t−1)|]
ATR14_t = (13 × ATR14_(t−1) + TR_t) / 14
The completed-bar signal and next opening
When flat, we require the preceding MFI14 to be strictly below 20, current MFI14 to be at least 20, and current close to be strictly above current EMA200. A close exactly on the EMA does not qualify. The modeled purchase uses the immediately next scheduled H4 opening plus adverse buy slippage. A missing next bar cancels that entry. A newly flat account can use a fresh close signal for the following opening; it cannot reopen inside the bar. There are no shorts, borrowed funds or overlapping positions.
MFI14_(t−1) < 20 ≤ MFI14_t; C_t > EMA200_t
E = next_scheduled_open × (1 + s)
Fixed price levels and the holding deadline
The initial price distance is twice the signal bar's ATR14. Subtract that distance from the modeled entry fill for the stop SL, and add twice that distance for target T. Both levels remain fixed. The entry bar counts as holding bar one. If neither barrier exits the position, the 30th scheduled holding close ends the trade. If that quote is missing, use the first later observed opening after barrier checks. Each independent period liquidates any remaining position at its last observed close.
D = 2 × ATR14_signal; SL = E − D; T = E + 2D
Barrier ordering and what the timestamps establish
At an observed opening, check a gap beyond a barrier before the candle's high and low; the opening price receives adverse sell slippage. Barrier exits precede a time exit at the same close. Only H4 candles touching both levels require the frozen one-minute ordering replay. An unresolved minute or a missing minute before resolution uses stop first, with a target-first alternative. A single-touch H4 candle identifies the barrier, not an exact execution time. The example M15 views group real one-minute observations and refine the exit to a minute interval; they do not prove a tick-level fill or alter the main ledger's H4 timing scope.
Size the trade from its planned cash loss
Each run starts flat with 10,000 USDT. We budget at most 1% of available cash for a nominal stop including both fees and adverse slippage, then cap quantity by the cash required to buy it. Fractional BTC quantities are allowed. The full primary run has 0 cash-capped trades. The modeled stop loss can exceed the budget after a gap. The target is two price distances from entry; fees mean its net result need not be +2 R. Historical lot-size and minimum-order feasibility is outside this account model.
L_unit = E(1 + f) − SL(1 − s)(1 − f)
q = min[0.01 × Cash / L_unit, Cash / (E(1 + f))]
B = q × L_unit; Net R = Net P&L / B
Costs: separate account reruns and fixed quantities
Baseline costs are 0.10% of transaction value and 0.05% adverse price slippage on each side. The higher-cost case uses 0.20% and 0.10% respectively; the zero-cost case removes both. These are research assumptions, not a current fee-tier quote. Each cost scenario recalculates fills, fixed price levels and cash-constrained quantities. The additional ledger comparison holds the primary entries, quantities and exit references fixed to isolate direct recosting; its summed P&L is not a resimulated account return. Spread is not added again as an unmeasured cost.
X = exit_reference × (1 − s)
Net P&L = q × (X − E) − f × q × (E + X)
| Account / case | Fee per side · % | Slippage per side · % |
|---|---|---|
| MFI14 + EMA200 | 0.10 | 0.05 |
| Primary rules · zero costs | 0.00 | 0.00 |
| Primary rules · higher costs | 0.20 | 0.10 |
Fee is paid on the adjusted transaction value. Slippage changes the fill price; it is not an extra fee.
| Account / case | P&L at fixed primary quantities · USDT | Fees · USDT |
|---|---|---|
| Primary rules · zero costs | +951.61 | 0.00 |
| MFI14 + EMA200 | +676.52 | 183.40 |
| Primary rules · higher costs | +401.42 | 366.79 |
Original primary entries, quantities and exit references remain fixed. This is a ledger P&L comparison, not a new account simulation or an account-return percentage.
Account results and passive context
The continuous primary account ends at 10,676.52 USDT, a return of +6.77%, after 183.40 USDT in fees. Its largest drawdown at observed H4 closes is 4.93%; this sampling does not measure the worst intrabar decline. Independent early and later accounts return +1.75% and +4.93%. They restart cash and force period-boundary exits, so their trades and returns need not add to the continuous run. Fully invested buy-and-hold is context with different exposure and risk, not a matched-risk competitor.
| Account / case | Net account return · % | Max. H4-close drawdown · % | Completed trades | Observed held bars · % | Final cash · USDT |
|---|---|---|---|---|---|
| MFI14 + EMA200 · Continuous 2020–2025 | +6.77 | 4.93 | 30 | 3.57 | 10,676.52 |
| Buy-and-hold · Continuous 2020–2025 | +1,114.49 | 77.04 | 1 | 100.00 | 121,449.28 |
| MFI14 + EMA200 · Independent 2020–2022 | +1.75 | 3.64 | 13 | 3.47 | 10,175.23 |
| Buy-and-hold · Independent 2020–2022 | +129.22 | 77.04 | 1 | 100.00 | 22,921.89 |
| MFI14 + EMA200 · Independent 2023–2025 | +4.93 | 4.04 | 17 | 3.68 | 10,492.65 |
| Buy-and-hold · Independent 2023–2025 | +428.27 | 34.37 | 1 | 100.00 | 52,827.28 |
Each row starts with 10,000 USDT. Drawdown uses native H4 closing marks and includes initial cash as the opening peak. Exposure is the share of observed evaluated bars during which a position was held at any time.
Continuous primary account at H4 closes
What changes without EMA or variable volume?
We retain the full specified set rather than replace the headline rule with its best alternative. Removing the EMA filter changes only the trend gate. The constant-volume control sets each MFI volume input to one while keeping the typical-price comparison, window, threshold, EMA gate and trade management. Its full-period return is +6.28%, versus −1.42% without the EMA gate. These variants can produce different signals, occupancy and exposure. A historical difference cannot by itself show that volume contains a durable forecasting edge or that one account is superior at equal risk.
| Account / case | Net account return · % | Max. H4-close drawdown · % | Completed trades | Observed held bars · % |
|---|---|---|---|---|
| MFI14 + EMA200 · Continuous 2020–2025 | +6.77 | 4.93 | 30 | 3.57 |
| MFI14 without EMA · Continuous 2020–2025 | −1.42 | 12.34 | 122 | 15.47 |
| Constant-volume MFI + EMA200 · Continuous 2020–2025 | +6.28 | 1.00 | 5 | 0.49 |
| MFI14 + EMA200 · Independent 2020–2022 | +1.75 | 3.64 | 13 | 3.47 |
| MFI14 without EMA · Independent 2020–2022 | −6.27 | 10.83 | 53 | 13.22 |
| Constant-volume MFI + EMA200 · Independent 2020–2022 | +3.70 | 0.87 | 2 | 0.43 |
| MFI14 + EMA200 · Independent 2023–2025 | +4.93 | 4.04 | 17 | 3.68 |
| MFI14 without EMA · Independent 2023–2025 | +5.18 | 8.06 | 69 | 17.73 |
| Constant-volume MFI + EMA200 · Independent 2023–2025 | +2.49 | 1.00 | 3 | 0.56 |
Base costs and the same trade-management rules. Each variant has its own one-position calendar, signal history and cash path.
| Account / case | Net account return · % | Max. H4-close drawdown · % | Completed trades | Observed held bars · % |
|---|---|---|---|---|
| Primary rules · zero costs · Continuous 2020–2025 | +10.13 | 4.98 | 30 | 3.57 |
| Primary rules · higher costs · Continuous 2020–2025 | +4.01 | 4.88 | 30 | 3.59 |
| Primary rules · zero costs · Independent 2020–2022 | +2.63 | 3.71 | 13 | 3.47 |
| Primary rules · higher costs · Independent 2020–2022 | +0.97 | 3.57 | 13 | 3.44 |
| Primary rules · zero costs · Independent 2023–2025 | +7.30 | 4.10 | 17 | 3.68 |
| Primary rules · higher costs · Independent 2023–2025 | +3.00 | 3.99 | 17 | 3.74 |
Each scenario reruns fills, fixed levels and sizing. The zero-cost and higher-cost rows do not replace the primary rule.
Ambiguity, missing bars and trades across gaps
The full primary run contains 0 double-touch H4 bars, 0 unresolved ordering cases, 1 trades carried across missing H4 observations and 0 entries canceled for a missing adjacent bar. The target-first alternative changes only unresolved ordering. The gap-exclusion diagnostic removes affected trades at their original quantities and reports retained ledger P&L; it does not rebuild an account or establish that those trades could have been avoided in real time. Missing observations and modeled opening-gap fills remain limitations even when aggregate results reconcile.
| Period | H4 bars touching both levels | Double touches resolved by minutes | Unresolved ordering cases | Trades across an H4 gap | Missing-next-bar cancellations | Target-first alternative return · % |
|---|---|---|---|---|---|---|
| Continuous 2020–2025 | 0 | 0 | 0 | 1 | 0 | +6.77 |
| Independent 2020–2022 | 0 | 0 | 0 | 1 | 0 | +1.75 |
| Independent 2023–2025 | 0 | 0 | 0 | 0 | 0 | +4.93 |
The target-first alternative applies only where the frozen minute replay cannot establish barrier order. H4 single-touch timing remains interval based.
| Period | Excluded trades | Retained trades | Retained ledger P&L · USDT |
|---|---|---|---|
| Continuous 2020–2025 | 1 | 29 | +777.27 |
| Independent 2020–2022 | 1 | 12 | +275.98 |
| Independent 2023–2025 | 0 | 17 | +492.65 |
Affected trades are removed from the recorded ledger at original quantities. The retained P&L is not a rebuilt account return.
The first trade in each independent period
The first completed early-account trade enters at 2020-01-21 20:00 UTC and records −1.000 net R. The first completed later-account trade enters at 2023-04-16 20:00 UTC and records −1.000 net R. Their H4 panels retain the signal, opening reference, fixed levels, MFI with actual and constant volume weights, and BTC volume. The M15 panels show the exit interval built from real minute candles. Candles and S/E/X markers use unadjusted market references; the accompanying details distinguish modeled entry and exit fills after slippage. Example selection is chronological rather than chosen for an attractive chart.
Example 1 · First completed early-account trade
- Entry · UTC
- 2020-01-21 20:00
- Main-ledger exit interval · UTC
- [2020-01-24 08:00, 2020-01-24 12:00)
- Modeled entry fill · USDT/BTC
- 8,535.02
- Modeled exit fill · USDT/BTC
- 8,268.40
- Fixed stop
- 8,272.54 USDT/BTC
- Fixed target
- 9,059.97 USDT/BTC
- Quantity · BTC
- 0.35283612
- Planned cash risk · USDT
- 100.00
- Net P&L · USDT
- −100.00
- Net R
- −1.000
- Refined exit minute · UTC
- [2020-01-24 09:45, 2020-01-24 09:46)
- Exit reason
- Stop barrier
H4 prices, MFI14 and BTC volume
- Open
- 8,645.10
- High
- 8,663.47
- Low
- 8,488.00
- Close
- 8,531.86
- Base volume · BTC
- 7,182.070
- EMA200
- 8,026.09
- ATR14
- 131.24
- MFI14 · actual BTC volume
- 21.94
- MFI14 · volume fixed at one
- 28.63
Exit context from real M15 candles
- Open
- 8,279.91
- High
- 8,279.94
- Low
- 8,260.19
- Close
- 8,260.23
- Base volume · BTC
- 839.626
Chronological selection from the specified account. Native candles and markers use raw price references; modeled fills and costs are listed separately. The minute refinement supplies an interval rather than an observed tick execution.
Example 2 · First completed later-account trade
- Entry · UTC
- 2023-04-16 20:00
- Main-ledger exit interval · UTC
- [2023-04-17 00:00, 2023-04-17 04:00)
- Modeled entry fill · USDT/BTC
- 30,324.20
- Modeled exit fill · USDT/BTC
- 29,788.03
- Fixed stop
- 29,802.93 USDT/BTC
- Fixed target
- 31,366.76 USDT/BTC
- Quantity · BTC
- 0.16770386
- Planned cash risk · USDT
- 100.00
- Net P&L · USDT
- −100.00
- Net R
- −1.000
- Refined exit minute · UTC
- [2023-04-17 00:52, 2023-04-17 00:53)
- Exit reason
- Stop barrier
H4 prices, MFI14 and BTC volume
- Open
- 30,332.98
- High
- 30,549.99
- Low
- 30,259.69
- Close
- 30,309.06
- Base volume · BTC
- 6,879.448
- EMA200
- 27,842.11
- ATR14
- 260.64
- MFI14 · actual BTC volume
- 27.58
- MFI14 · volume fixed at one
- 35.72
Exit context from real M15 candles
- Open
- 29,910.99
- High
- 29,911.00
- Low
- 29,790.01
- Close
- 29,842.86
- Base volume · BTC
- 1,201.278
Chronological selection from the specified account. Native candles and markers use raw price references; modeled fills and costs are listed separately. The minute refinement supplies an interval rather than an observed tick execution.
A later example with the opposite result
The third example is drawn from the independent later account: it is the first chronological positive trade whose net P&L has the opposite sign to that of the account’s first trade. Its entry is 2023-11-15 12:00 UTC and its net result is +0.736 R. It comes from the same frozen rules and is already included in the account totals. The example illustrates the rule's failures as well as favorable outcomes; neither this chart nor the earlier examples estimates a win probability from a few selected trades.
Example 3 · First later trade with the opposite result
- Entry · UTC
- 2023-11-15 12:00
- Main-ledger exit interval · UTC
- 2023-11-20 12:00
- Modeled entry fill · USDT/BTC
- 36,259.07
- Modeled exit fill · USDT/BTC
- 37,128.93
- Fixed stop
- 35,265.34 USDT/BTC
- Fixed target
- 38,246.54 USDT/BTC
- Quantity · BTC
- 0.09142335
- Planned cash risk · USDT
- 99.00
- Net P&L · USDT
- +72.82
- Net R
- +0.736
- Refined exit minute · UTC
- 2023-11-20 12:00
- Exit reason
- Holding deadline
H4 prices, MFI14 and BTC volume
- Open
- 35,576.88
- High
- 36,278.62
- Low
- 35,576.88
- Close
- 36,240.94
- Base volume · BTC
- 7,279.361
- EMA200
- 33,576.84
- ATR14
- 496.87
- MFI14 · actual BTC volume
- 20.75
- MFI14 · volume fixed at one
- 28.56
Exit context from real M15 candles
- Open
- 37,240.77
- High
- 37,247.23
- Low
- 37,083.52
- Close
- 37,147.50
- Base volume · BTC
- 595.953
Chronological selection from the specified account. Native candles and markers use raw price references; modeled fills and costs are listed separately. The minute refinement supplies an interval rather than an observed tick execution.
Annual paths and the limits of a small sample
The annual chart uses successive year-end equity values from the continuous account, with the same close-based marking as the main curve. Annual percentages compound and do not add into the full return. The later primary account has 17 completed trades; a threshold of 30 is a warning convention, not a statistical test. The table retains average and median net R, profit factor, holding time, exposure and the cash cap. Fees, regime changes, one-venue volume and the small number of opportunities limit what these retrospective results can establish.
The later independent account contains fewer than 30 completed trades. Treat its result as limited evidence; the rules and observation window were not changed to increase the count.
Annual account returns from the continuous runs
| Period | MFI14 + EMA200 | MFI14 without EMA | Constant-volume MFI + EMA200 |
|---|---|---|---|
| 2020 | +1.08 | −2.31 | 0.00 |
| 2021 | +2.71 | +4.22 | +3.70 |
| 2022 | −1.99 | −7.94 | 0.00 |
| 2023 | +0.84 | +5.05 | +2.49 |
| 2024 | +1.62 | −0.98 | 0.00 |
| 2025 | +2.39 | +1.12 | 0.00 |
Each percentage compares the year's final observed closing equity with the preceding year-end equity, or initial cash for 2020. These are continuous-account years rather than restarted annual backtests.
| Account / case | Continuous 2020–2025 | Independent 2020–2022 | Independent 2023–2025 |
|---|---|---|---|
| Positive P&L | 16 | 6 | 10 |
| Negative P&L | 14 | 7 | 7 |
| Zero P&L | 0 | 0 | 0 |
| Profit factor | 1.484 | 1.263 | 1.687 |
| Average net R | +0.226 | +0.142 | +0.290 |
| Median net R | +0.135 | −0.542 | +0.238 |
| Average scheduled holding bars | 15.70 | 17.62 | 14.24 |
| Median scheduled holding bars | 15.50 | 18.00 | 6.00 |
| Cash-capped trades | 0 | 0 | 0 |
| Sum of closed-trade net R | +6.775 | +1.840 | +4.935 |
| Closed-trade drawdown · R | 4.000 | 3.000 | 4.000 |
Profit factor is gross positive net P&L divided by absolute gross negative net P&L. R divides each trade's net P&L by its planned fee-aware cash risk. These summaries do not measure statistical significance.
Reproduce the calculation and preserve its scope
The downloads retain the frozen specification, source manifest, indicator records, complete account and trade paths, diagnostic cases and replay code. Independently reconstruct the indicators, cash accounting and edge cases before interpreting the tables. The rules use past completed observations and the next scheduled opening; example timing refinements remain separately labeled. There is no live order, wallet connection or price feed here. Fractional quantity, fixed cost assumptions and sampled drawdown make this a reproducible research model, not a guarantee of executable historical fills or future returns.
python3 btc-mfi-replay.py --protocol btc-mfi-protocol.json --raw-dir raw4h --minute-dir raw1m --output replay.json
Questions and answers
Is this a profitable Bitcoin MFI strategy?
The primary full account reports +6.77% over six historical years under specified costs, while the independent later result is +4.93% across 17 trades. Those observations do not establish a robust or statistically proven edge. Keep the controls, exposure, drawdown sampling and small sample in view before drawing a conclusion.
Does MFI measure money entering Bitcoin?
No. It weights typical-price moves by reported trading volume. Here that volume is BTC traded on one spot venue. It is neither net deposits nor a complete measure of global Bitcoin liquidity. The constant-volume control tests variable volume weights within this definition; it is not ordinary RSI.
Why is a target exit not exactly +2 net R?
The target is two price-stop distances above the entry fill. Net R instead divides net trade P&L by the planned cash loss at a nominal stop, including entry and exit fees and adverse slippage. Fees and adverse slippage affect both the net target profit and the planned cash loss. A gap through the stop can also produce a loss beyond −1 net R.
Are the early and later periods an unseen test?
No. Both historical periods had ended when the specification was fixed. We run each independently from 10,000 USDT and keep the continuous account too. The split is a retrospective consistency check, without a claim of prospective validation, parameter optimization or a future-performance estimate.
How exact are the charts and exit times?
OHLC candles, BTC volume and indicators come from retained observations. H4 single-touch exits have a four-hour timing scope in the main ledger. A one-minute replay refines selected examples to an interval; M15 bars are aggregates of those real minutes. Stop/target ordering inside an unresolved minute remains a convention, and no chart establishes actual fills.
Does the drawdown include open positions?
Yes, the account is marked at each observed H4 close as cash plus BTC quantity times the native close; an exit fee is charged when the position is liquidated. Initial cash is included as the opening peak. The displayed percentage is the largest peak-to-trough decline in that sampled path. It is not continuous intrabar drawdown or the separately labeled closed-trade drawdown in R.
Sources and reproducibility
Copying or republication without attribution and an active link to the original material is prohibited. Usage policy.
Research limitations
Historical prices, fixed costs, fractional quantities and modeled executions do not establish actual fills or future returns. Cash-funded spot exposure still carries price, liquidity, venue and stablecoin risk. Drawdown is sampled at observed H4 closes.