{
  "id": "mpf-mfi14-typical-price-base-volume-guide-20261115-v1",
  "frozen_at_utc": "2026-11-15T21:39:22.490772+00:00",
  "kind": "educational_indicator_guide",
  "instrument": "Binance ETH/USDT spot H4",
  "period": 14,
  "bar_seconds": 14400,
  "price_scale": 100000000,
  "volume_scale": 100000000,
  "source_evidence": "eth-wr-evidence.json",
  "source_sha256": "060f24b65562a768dde311f7e6ff09ba69c4bc99c2c2457e46dd7b2bc95b88ad",
  "source_fields": [
    "ts",
    "open",
    "high",
    "low",
    "close",
    "volume",
    "source_close_raw",
    "timestamp_scale"
  ],
  "canonical_policy": "A valid source close label equals (ts+14400)*timestamp_scale-1, with timestamp_scale 1000 or1000000. A noncanonical row or missing scheduled anchor resets the indicator segment. Raw rows stay in downloads. Interval labels are not execution times.",
  "input_policy": "Positive finite OHLC with valid bounds; finite nonnegative base-asset volume. Reject missing, negative, nonfinite or nonrepresentable volume. A genuine zero volume remains a valid observation and predecessor; it contributes zero flow.",
  "formulas": {
    "typical_price": "TP=(H+L+C)/3",
    "raw_flow": "F=TP*current total base-asset volume. Not the change inTP times volume; not quote volume or taker-only volume.",
    "classification": "Compare exact currentTP with the immediately preceding canonical adjacentTP. Positive if greater, negative if less, neither if equal. Both contributions are nonnegative magnitudes. First price of a segment is only a reference and has no classified contribution.",
    "sums": "P14 and N14 sum the last14 classified comparisons through current. Fifteen consecutive canonical price observations are needed for the first reading.",
    "mfi": "MFI=100*P14/(P14+N14) when total>0. P>0,N=0 gives100; P=0,N>0 gives0; P=N=0 gives unavailable. Do not carry a value or substitute0/50.",
    "precision": "Preserve original price/volume integers. With z=H_int+L_int+C_int and w=volume_int, classified raw flow numerator is z*w. Common divisor3*price_scale*volume_scale cancels in the exact MFI fraction.",
    "platform_policy": "Exact comparisons and null for empty flow are explicit guide choices. Do not claim bitwise TA-Lib parity: its documented empty-flow fallback is0 and current C main uses a near-equality tolerance.",
    "interpretation": "TP*base volume has quote-unit dimensions but is a proxy, not recorded quote turnover, net capital movement or aggressor classification. Positive common volume and price scaling preserve MFI; additive price shifts generally do not."
  },
  "history_policy": "Fourteen valid current-inclusive flow comparisons within consecutive canonical H4 segments. No filling of missing bars; no cross over unavailable readings or nonadjacent anchors.",
  "crosses": {
    "up_20": "PreviousMFI<=20 and currentMFI>20; both defined on adjacent canonical H4 candles. No upper ceiling.",
    "upper_zone": "MFI>80 strictly; equality80 excluded.",
    "lower_zone": "MFI<20 strictly; equality20 excluded."
  },
  "selection": {
    "start_utc": "2023-01-01T00:00:00Z",
    "start_ts": 1672531200,
    "order": [
      "low_cross",
      "body_disagrees",
      "high_run"
    ],
    "conditions": {
      "low_cross": "Previous MFI<=20, current MFI>20.",
      "body_disagrees": "Current TP>previousTP, volume>0, and current close<current open. MFI is defined.",
      "high_run": "Current and two preceding MFI readings all strictly>80."
    },
    "eligibility": "Current and16 preceding rows must form17 adjacent canonical H4 anchors; need25 earlier and5 later observed rows for a31-row display. First distinct qualifying source index for each predicate in declared order; no fallback.",
    "future_context": "Five later rows are required for display availability only. Their prices, volume, quality and returns do not rank selection.",
    "performance_calculated": false
  },
  "display": {
    "candles": 31,
    "reference_index": 25,
    "ohlc_decimals": 2,
    "typical_price_decimals": 6,
    "volume_decimals": 6,
    "proxy_flow_decimals": 2,
    "mfi_decimals": 2,
    "x_axis": "Even observed-index spacing. Compress and mark calendar gaps. Connect consecutive available observations; break a line only at unavailable values.",
    "mfi_axis": "Fixed0..100, reference levels0/20/50/80/100.",
    "volume_axis": "Zero to a fixed padded maximum across all31 displayed volumes. Volume colour uses TP direction; candle colour uses close versus open."
  },
  "synthetic": {
    "weighting": {
      "typical_prices": [
        100,
        110,
        100,
        110,
        100,
        110,
        100,
        110,
        100,
        110,
        100,
        110,
        100,
        110,
        100
      ],
      "equal_volumes": [
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1
      ],
      "heavy_last_volumes": [
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        1,
        10
      ],
      "expected_equal": {
        "positive_sum": 770,
        "negative_sum": 700,
        "mfi_num": 1100,
        "mfi_den": 21
      },
      "expected_heavy": {
        "positive_sum": 770,
        "negative_sum": 1600,
        "mfi_num": 7700,
        "mfi_den": 237
      }
    },
    "endpoints": {
      "up_only": {
        "typical_prices": [
          100,
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114
        ],
        "volumes": [
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1
        ],
        "positive_sum": 1505,
        "negative_sum": 0,
        "mfi": 100
      },
      "down_only": {
        "typical_prices": [
          114,
          113,
          112,
          111,
          110,
          109,
          108,
          107,
          106,
          105,
          104,
          103,
          102,
          101,
          100
        ],
        "volumes": [
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1,
          1
        ],
        "positive_sum": 0,
        "negative_sum": 1491,
        "mfi": 0
      },
      "equal_tp": {
        "typical_prices": [
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100,
          100
        ],
        "volumes": [
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10,
          10
        ],
        "positive_sum": 0,
        "negative_sum": 0,
        "mfi": null
      },
      "zero_volume": {
        "typical_prices": [
          100,
          101,
          102,
          103,
          104,
          105,
          106,
          107,
          108,
          109,
          110,
          111,
          112,
          113,
          114
        ],
        "volumes": [
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0,
          0
        ],
        "positive_sum": 0,
        "negative_sum": 0,
        "mfi": null
      }
    }
  },
  "research_disclosure": "Retrospective educational examples from a previously published source. Protocol fixed before MFI candidate scanning. Original monthly ZIP files are not downloaded again. No returns, orders or costs are calculated.",
  "performance_calculated": false,
  "sources": [
    "https://www.tradingview.com/support/solutions/43000502348-money-flow-mfi/",
    "https://ta-lib.org/functions/mfi.html",
    "https://github.com/binance/binance-public-data/blob/master/README.md"
  ],
  "additional_primary_context": [
    "https://github.com/binance/binance-spot-api-docs/blob/master/web-socket-streams.md#klinecandlestick-streams-for-utc",
    "https://ta-lib.org/functions/marketfi.html"
  ]
}
