Bitcoin H4 MFI14 + EMA200 — frozen retrospective study

Python 3 standard library only. Unzip this package and run from its directory:

python3 btc-mfi-replay.py --protocol btc-mfi-protocol.json --raw-dir raw4h --minute-dir raw1m --output replay.json

The original 79 monthly H4 ZIPs and nine selected daily minute ZIPs are retained with their official .CHECKSUM files. The replay checks every SHA-256 before parsing. H4 data cover June 2019–December 2025, including indicator warm-up; accounts evaluate 2020–2025. Minute data cover selected illustration windows only, not a continuous six-year minute history. No H4 double-touch occurred in the reported runs.

Official archive format: https://github.com/binance/binance-public-data/blob/master/README.md
Monthly base: https://data.binance.vision/data/spot/monthly/klines/BTCUSDT/4h/
Daily base: https://data.binance.vision/data/spot/daily/klines/BTCUSDT/1m/

The manifests identify each source URL, SHA-256 and checksum verification. Two H4 scheduled source bars are absent; they are not fabricated. Eleven reported source-close timestamps are noncanonical; close-based signals remain available only at scheduled H4 cutoffs. Venue volume is base-asset BTC.

All output timestamps are UTC seconds. Bar timestamps identify candle openings. Equity timestamps identify scheduled closing cutoffs, with bar_ts retained for annual attribution. A single-touch H4 barrier exit has an interval anchor, not an exact execution timestamp. Selected examples use separately labeled minute refinements without changing the main trade fills or P&L.

The output retains 15 cost/control account runs, 15 target-first ordering alternatives, three passive accounts, full observed indicator records, trade/equity paths, annual returns, fixed-quantity recosting and gap-exclusion diagnostics. When an alternative path equals its primary path, equity_ref/annual_ref explicitly identify the identical runs/{key}/{field} array instead of repeating it.

Fixed-quantity recosting and gap exclusion report ledger P&L, not a new account return. Drawdown is sampled at H4 closes. Occupancy is the proportion of observed H4 bars during which a position was held, not exact clock-time exposure. Periods were complete when the protocol was fixed on 12 November 2026; there is no prospective or unseen-test claim. The later primary account has 17 completed trades.

This is reproducible research under fixed fee/slippage and fractional-quantity assumptions, not a record of executed orders or a future-return promise.
