{
  "id": "mpf-ethereum-h4-cmf20-matched-obv20-agreement-20261116-v1",
  "status": "FROZEN_BEFORE_NEW_STRATEGY_CALCULATION",
  "frozen_at_utc": "2026-11-16T10:19:50.934133+00:00",
  "site_baseline": "V380; source5216a5cb0046d0021cee7f46149e7b34f7c32486",
  "instrument": "Binance ETHUSDT spot",
  "direction": "Long only; cash funded; no leverage",
  "timeframe_seconds": 14400,
  "warmup_start": "2019-06-01T00:00:00Z",
  "price_scale": 100000000,
  "volume_scale": 100000000,
  "source_manifest": "source-manifest.json",
  "source_manifest_sha256": "bb0292a1befecb050bdb37b9850698a27ee46d2069f9c953eacee4a4411651c5",
  "source_policy": "Read exactly the79 named original ZIPs; independently verify expected SHA256, matching CHECKSUM sidecar and archive CRC, one exact named CSV member and12 columns. Original unrounded OHLCV strings and timestamp labels are preserved in the normalized H4 candle CSV. Reject duplicate anchors, nonpositive/nonfinite/invalid OHLC bounds, negative/nonfinite/nonrepresentable base volume, misaligned or nonintegral H4 anchors, opening timestamps outside the named source month, and prices/volume not representable on the1e8 scales. Genuine zero volume is valid. Sort source rows by anchor after validating each archive order. Do not fabricate observations.",
  "timestamp_policy": "Detect1000 or1000000 source units by raw opening timestamp magnitude (>=100000000000000 means microseconds); require raw opening divisible by unit and normalized opening on UTC14400-second grid. Preserve original raw close timestamp. Canonical iff raw_close=(normalized_open+14400)*unit-1; do not round that comparison. Source close-label anomalies stay in evidence.",
  "indicators": {
    "reset": "A missing scheduled H4 anchor or noncanonical source close ends the indicator segment. Noncanonical rows retain raw fields but have no indicators or close signals. The next canonical row starts fresh; genuine zero volume does not reset history.",
    "cmf20": "For each canonical bar with H>L, MFM=(2*C_int-H_int-L_int)/(H_int-L_int) as an exact reduced Fraction. If H=L, MFM=0. MFV=MFM*V. Current-inclusive20 adjacent canonical bars: CMF20=sum(MFV)/sum(V); denominator0 unavailable. Keep a zero-range bar volume in the denominator. Preserve exact numerator/denominator and decide signs before display rounding.",
    "matched_obv20": "Within each canonical segment set first OBV=0; adjacent d=sign(C_int-Cprev_int), signed_volume=d*V_int, equal close contributes0. OBV accumulates exact integers. Change20=OBV_t-OBV_(t-20)=sum of20 signed volumes on EXACTLY the CMF20 volume window, requiring21 prices. Absolute OBV zero is not an entry threshold. Balance20=Change20/window_volume when positive denominator, for display only; sign gate is exact Change20>0.",
    "constant_volume": "Replace each strictly positive total ETH bar volume by1 ETH (1e8 integer units), retaining original zero volume. Independently rebuild CMF, both sides of its crossing, matched OBV change and CMF exit signals. Preserve real-data common entry eligibility, real OHLC/ATR, costs/clocks/sizing. The diagnostic changes triggers, gates, exits and trade calendar together; it is not an isolated causal effect of volume.",
    "atr14": "First TR=H-L within segment; later max(H-L,abs(H-Cprev),abs(L-Cprev)). Seed arithmetic mean of first14 TR using math.fsum; then (13*previous+TR)/14. Primary uses binary64 ATR, independent Decimal(50). Boundary tests for CMF and OBV use exact source integers/Fractions. Model fills/accounts use unrounded values."
  },
  "common_entry_eligibility": "Current canonical run>=100, positive current ATR14, current and preceding real CMF20 defined in the same segment, current matched real OBV20 change defined. Predecessor may have run99. This fixed real-data mask is shared by filtered, CMF-only and flattened-volume runs; unavailable diagnostic crossing/gate fails.",
  "primary_signal": "When flat after current interval events: previous real CMF20<=0 AND current real CMF20>0 AND real matched Change20>0. Current-inclusive CMF windows differ by one bar; do not round before comparing. No EMA, price breakout or threshold optimization.",
  "control_signal": "Remove ONLY matched Change20>0. Preserve real CMF crossing, eligibility, CMF exits, periods, costs and account rules. Independent account calendar means actual trades need not form a superset of filtered fills.",
  "constant_volume_signal": "Same fixed real-data eligibility, but use reconstructed previous flat CMF<=0<current flat CMF and flat matched Change20>0; exit on flat CMF<=0. Base costs for full/early/later. Synthetic positive-volume1/zero0 normalization is a diagnostic, not a tradable feed.",
  "periods": {
    "full": [
      "2020-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ],
    "early": [
      "2020-01-01T00:00:00Z",
      "2023-01-01T00:00:00Z"
    ],
    "later": [
      "2023-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ]
  },
  "period_restarts": "Each [start,end) account starts independently flat with10000USDT. Carry continuous preperiod indicator history since warmup start subject to resets. A valid close signal on the immediately preceding scheduled candle may enter at start only at its exact scheduled observed opening. Missing scheduled opening cancels that entry; do not defer it. No positions/queued exits carry between periods. No new entry at/after end.",
  "initial_cash": 10000,
  "risk_fraction": 0.01,
  "max_positions": 1,
  "leverage": false,
  "holding_limit_intervals": 30,
  "base_costs": {
    "fee_each_side": 0.001,
    "slippage_each_side": 0.0005
  },
  "higher_costs": {
    "fee_each_side": 0.002,
    "slippage_each_side": 0.001
  },
  "zero_costs": {
    "fee_each_side": 0,
    "slippage_each_side": 0
  },
  "cost_scenarios": "Primary and CMF-only each rerun independently across base/zero/higher costs and full/early/later:18 accounts. Flattened-volume primary base for all3 periods:3 more. Fees on actual filled notionals; adverse modeled slippage each side. No funding/spread/market-impact/order-book reconstruction; idle cash interest0. No leverage/borrowing/shorting/adding/target.",
  "entry": "Signal becomes available at scheduled H4 close open+14400. Queue only the immediately next scheduled observed opening. E=O*(1+s); SL=E-2*signal ATR14. Require0<SL<O and positive unit loss; reject already-breached/nonpositive protection. Do not use entry candle later close metadata to censor an available opening. Entries on a subsequently noncanonical bar remain, with quality flag.",
  "position_size": "Lunit=E*(1+f)-SL*(1-s)*(1-f); q=min(0.01*pre-entry cash/Lunit,pre-entry cash/(E*(1+f))). Charge entry fee immediately; cash never borrows. Continuous fractional ETH; historical lot/tick/notional constraints not reconstructed. Planned R denominator freezes q*Lunit. Stops gapped through can lose more than planned1%.",
  "event_priority": "For an existing position at each observed open:1 stop gap O<=SL;2 persistent queued CMF exit;3 elapsed missed time deadline. An opening exit cannot reopen at that same open. When flat, execute only an eligible pending next-open entry. Then for surviving/new positions:4 intrabar low<=SL at SL;5 surviving scheduled holding-limit close;6 terminal period last available close. After interval events and marks, use only a valid completed close to queue next opening entry or exit. A new close signal following an intrabar/close exit may queue a following open.",
  "exit": "Initial fixed stop only; no trailing/target. A defined completed real CMF20<=0 while held queues next-open liquidation, including the entry interval. Flattened diagnostic uses its own reconstructed CMF exit. Once queued, the exit persists through missing openings, later indicator changes/unavailability until an observed opening, with opening-stop priority. Deadline=entry_open+30*14400 (entry interval1), including missing scheduled intervals. Surviving observed30th interval exits at scheduled close; an absent deadline interval delays to first subsequent observed open. Period end uses last available observed close within [start,end), flagged if noncanonical or early. Do not infer tick paths or exact time of intrabar H4 stop touch.",
  "exit_prices": "Opening exit uses observed raw O, intrabar stop fixed SL, scheduled time/terminal exit source C. X=reference*(1-s); entry E=entry_O*(1+s); per-side fee f. Net unit for quoted open/close exits is computed with exact source-price and cost Fractions: reference*(1-s)*(1-f)-entry_O*(1+s)*(1+f), then multiplied by quantity. For fixed-stop exit net unit is exactly -Lunit by algebra. No epsilon sign classification. Final cash equals cash_before_entry+netPnL, reconciled with reserved cash plus sale proceeds; entry fee is reserved immediately. Intrabar stop time identifies its H4 interval, not an exact fill timestamp.",
  "missing_path": "Held positions retain protection over gaps/noncanonical bars. Flag any trade covering a missing observed interval or a noncanonical row, including an opening exit before later metadata becomes known. Flags are retrospective diagnostics, never an executable avoidance filter. Missing paths remain unobservable; no interpolated bars.",
  "equity": "At every observed evaluation H4 scheduled close, mark cash+q*C*(1-s)*(1-f); after liquidation, cash. Initial cash participates in running peak. Maximum drawdown is sampled at these H4 close marks, not intrabar. Show return100*(terminal cash/initial-1), positive/negative/zero net trades, PF=sum positive netPnL/abs(sum negative netPnL) (null without losses), mean netR (null if no trades), total fees/slippage/turnover. Zero trades return0, drawdown0, null PF/meanR. No annualized return metric.",
  "exposure": "Observed-interval occupancy proxy includes each observed evaluation candle when already held at its opening or entered there, including an opening-exit interval. Divide by observed evaluation rows. Not elapsed-time, capital-weighted or exact tick exposure.",
  "annual": "Within a single independently funded account run, use last marked equity for each UTC calendar year divided by prior year last mark (initial cash for first). Includes mark-to-market open positions, costs and compounding, not sums of calendar trade PnL. Calendar-year membership follows each candle's UTC opening anchor; the final December candle belongs to December's year even if its scheduled close/valuation becomes available on January 1.",
  "benchmarks": "Cash0%; separate fully invested cash-funded buy-and-hold base-cost account for each full/early/later period, entry at first available opening and terminal last-close sale. No timing/risk equivalence; disclose differing exposure and dataset boundaries.",
  "candidate_diagnostics": "Record every common-eligible real CMF upward zero crossing and matched OBV sign, including held candidates; also record own flattened candidates. Separate failed gate, held state and queued action. Differences in account participation/cash/quantities are not a causal sum of rejected losing trades.",
  "example_selection": {
    "order": [
      "early",
      "later",
      "opposite"
    ],
    "early": "First chronologically completed filtered/base early-period trade.",
    "later": "First chronologically completed filtered/base later-period trade.",
    "opposite": "First later-period primary/base trade with netPnL sign opposite to first later example; if absent use next chronological later trade; if neither exists explicitly show unavailable. Outcome-conditioned teaching illustration, not an unbiased performance sample. Opposite sign means strictly positive versus strictly negative; zero netPnL has no opposite, so a zero-result first later example goes directly to the declared next-chronological-trade fallback. That fallback is the next completed primary/base later-period trade after the first later example.",
    "unavailable": "If the first early/later trade is absent, show that example unavailable. For the third example apply only the declared opposite-sign/next-chronological fallback, then show unavailable; never select another attractive substitute.",
    "context": "Display20 observed rows before signal through3 observed rows after exit; context availability never ranks examples. Mark S completed signal, E raw entry reference, X exit reference, SL fixed protection; actual modeled fills differ by stated adverse slippage."
  },
  "display": "Price2 decimals, volume/OBV/change6, CMF/balance4, ATR6, netR3. Display rounding never drives signs. Separate price pane, cumulative segment-OBV pane (no rebasing at chart window) and shared CMF/normalized matched OBV pane fixed[-1,+1] with zero. Show gate Change20 in ETH and its window volume. Even observed-index candles; mark calendar gaps/noncanonical bars; break unavailable lines. Fixed S/E/X/SL and axes; movable reader cursor. Equity visual may sample daily marks; metrics/downloads retain every H4 mark. Encode exact ratio fields as decimal strings in public JSON to preserve arbitrary precision.",
  "independent_verification": {
    "method": "Separate raw ZIP loader, exact indicator windows, event engine and accounts consuming only original archives, protocol and manifest. No primary derived arrays/ledgers to construct independent results. Primary binary64 versus Decimal(50) account arithmetic; exact CMF Fraction and OBV integer signs; locked code SHA before each first calculation.",
    "absolute_tolerances": {
      "price_atr_indicators": 1e-08,
      "account_cash_equity_pnl_fees": 1e-06,
      "dimensionless_metrics": 1e-08,
      "eth_quantity": 1e-12
    },
    "before_first_calculation": "Each implementation records its code SHA and protocol/manifest SHA before calculation. Any mismatch is investigated without changing parameters/periods; implementation fixes recorded."
  },
  "research_disclosure": "Retrospective reused historical prices, fixed dates/rules before this new strategy computation. No optimization, prospectively unseen test, live track record or guaranteed profit. CMF and OBV share the same price/venue total ETH volumes and describe different proxies; neither is actual net capital flow, buyer percentage, taker flow or consolidated Ethereum volume.",
  "audited_dependencies": {
    "obv-cmf-guide": "e46b7ee7e4c7018c8781f45ca635affd22082654a50e61add7b870fe850eef1d"
  },
  "sources": [
    "https://www.tradingview.com/support/solutions/43000501974-chaikin-money-flow-cmf/",
    "https://www.tradingview.com/support/solutions/43000502593-on-balance-volume-obv/",
    "https://www.tradingview.com/support/solutions/43000501823-average-true-range-atr/",
    "https://github.com/binance/binance-public-data/blob/master/README.md"
  ],
  "question": "Does agreement of matched20-bar OBV change alter a CMF20 zero-cross strategy after costs?"
}
