{
  "id": "mpf-gbpusd-h4-parabolic-sar-williams-r14-20261116-v1",
  "status": "frozen_before_new_source_price_scan",
  "drafted_at_utc": "2026-11-16T12:22:15.122818+00:00",
  "freeze_instruction": "Root fully reviewed the complete protocol and four independent clarity amendments, bound seven exact source ZIPs using metadata only, then formally froze all economic/source/period/selection rules after V383 Ethereum re-audit publication and live verification. No new-strategy raw price row or indicator/candidate/performance calculation was read before this freeze. Main and independent implementations receive the same unmodified frozen protocol; no parameter search is authorized.",
  "question": "Does Williams %R14 midpoint confirmation change a completed Parabolic SAR reversal strategy after modeled FX costs?",
  "market": "GBP/USD HistData Generic ASCII M1 Bid OHLC aggregated to UTC H4; hypothetical USD-denominated GBP contract account, not physical GBP holdings or broker reconstruction.",
  "direction": "long_and_short_one_position",
  "source": {
    "name": "HistData Generic ASCII M1 Bid",
    "raw_directory": "data/gbpusd-pivots/raw",
    "selected_files": [
      "GBPUSD-M1-2019.zip",
      "GBPUSD-M1-2020.zip",
      "GBPUSD-M1-2021.zip",
      "GBPUSD-M1-2022.zip",
      "GBPUSD-M1-2023.zip",
      "GBPUSD-M1-2024.zip",
      "GBPUSD-M1-2025.zip"
    ],
    "manifest": "source-manifest.json",
    "manifest_binding": "The metadata-only seven-file manifest source-manifest.json is bound by source_manifest_sha256. It pins exact existing archive names, byte sizes, SHA256 and CSV member identities. No source rows or CRC decompression were read while binding. After owner formal freeze, each implementation verifies all seven archives against that manifest and independently tests CRC before source calculations; no provider-published checksum is claimed.",
    "source_timezone": "Fixed EST UTC-05:00 without DST. Add exactly18000 seconds to source stamps; do not reinterpret the source as America/New_York daylight time.",
    "raw_fields": "YYYYMMDD HHMMSS;BidOpen;BidHigh;BidLow;BidClose;volume_placeholder; six semicolon-separated fields.",
    "quote_units": "USD per GBP. Source has no observed Ask or spread and no meaningful consolidated FX volume; discard the volume placeholder as an analytical input.",
    "normalization": "Verify selected ZIP SHA256/size, ZIP CRC and one pinned GBPUSD M1 CSV identity. Parse every source timestamp and positive finite OHLC exactly. Require second00 and actual UTC minute anchors. Collapse duplicate UTC stamps only when complete original row bytes are identical; preserve each repetition in an audit. Conflicting repetitions fail. Audit source backward jumps, then sort unique rows chronologically; no discretionary quote choice. Preserve original ZIPs, source rows and hash provenance privately. Validate all selected source rows, then retain warmup_start<=UTC timestamp<2026-01-01T00:00:00Z. The final fixed-EST2025 file may include five UTC hours in2026, which are excluded.",
    "publication": "Publish original analytics, protocol, source hashes, standalone replay/independent scripts, full scenario trade CSV, observed H4 aggregates and selected illustrative M1 observations. Do not redistribute the complete original M1 ZIP database or package a giant plain full-M1 JSON in Git/public assets. Source archives are obtained separately from the provider. Each gallery example includes the observed entry and exit M1 Bid OHLC, normalized timestamp, and exact source-price integers as a small quote-observation record. These source minute bars do not establish unknown intraminute execution order or tick time.",
    "normalized_m1_fingerprint": {
      "scope": "Every sorted unique retained execution row after byte-identical duplicate collapse and warmup_start_utc<=ts<2026-01-01T00:00:00Z filtering. Original selected ZIP/CRC/row validation remains independent.",
      "encoding": "For each retained row append exact ASCII f'{ts};{Oint};{Hint};{Lint};{Cint}\\n', where ts is normalized UTC integer seconds and OHLC integers use price_scale=1000000. No header, BOM, spaces, grouping, CRLF or omitted final newline. Standard integer decimal text; semicolon separators and one LF byte after every row.",
      "digest": "SHA256 of the concatenation in ascending retained timestamp order. Record normalized_m1_rows, first_ts,last_ts,price_scale and normalized_m1_sha256. Both implementations stream/hash these exact normalized rows; matching fingerprints compare every retained minute without a giant plain M1 JSON artifact."
    },
    "manifest_sha256": "b1ab8f1d2bbea5a99b5593d07046e0819ce1d3bc305095a2fa380a6a0ed5b183"
  },
  "warmup_start_utc": "2019-06-01T00:00:00Z",
  "bar_seconds": 14400,
  "execution_seconds": 60,
  "price_scale": 1000000,
  "pip_size": 0.0001,
  "price_precision": "Parse original source prices as exact integer millionths of USD/GBP. Reject negative/nonfinite/zero prices, invalid OHLC bounds and nonzero finer-than1e-6 precision. Exact extrema and WR comparisons use these integers. Never round before signal comparisons.",
  "aggregation": {
    "buckets": "UTC H4 anchors00/04/08/12/16/20. Aggregate all unique observed M1 rows in each [anchor,anchor+14400) bucket: first observed BidOpen, maximum BidHigh, minimum BidLow, last observed BidClose.",
    "coverage": "Retain count n, first_ts,last_ts and a full flag. Full means exactly the240 unique scheduled minute anchors anchor+60*k for k0..239. Retain sparse/partial session and holiday buckets; never invent flat rows or candles. A bucket anchor does not assert a quote existed there.",
    "availability": "All H4 values become available only at scheduled anchor+14400, including a bucket whose last observed minute is earlier. No backdating to its last quote.",
    "observed_history": "All indicators and the100-bar warmup use observed buckets since warmup start, including partial buckets and across ordinary weekend/holiday or other quote gaps. Missing whole buckets are absent rather than inserted. Do not reset indicator history at a calendar gap and do not require100 consecutive complete H4 slots."
  },
  "indicators": {
    "williams_r14": "Current-inclusive14 observed H4 buckets. HH=max BidHigh_int, LL=min BidLow_int. n=-100*(HH-C_int),d=HH-LL; WR=n/d only when d>0. Zero range is unavailable in both models; do not substitute or forward fill. Only the current reading is an entry midpoint gate, comparing exact n with -50*d. No Williams crossing or Williams exit is used.",
    "parabolic_sar": {
      "parameters": {
        "af_start_num": 1,
        "af_start_den": 50,
        "af_step_num": 1,
        "af_step_den": 50,
        "af_max_num": 1,
        "af_max_den": 5
      },
      "variant": "Explicit TA-Lib-style high/low state order, exact rational arithmetic. Not a claim of bit-for-bit library/platform output.",
      "initialization": {
        "first": "First observed bar has no SAR/state output; first two observed highs/lows establish the seed at index1.",
        "direction": "downMove=L0-L1; upMove=H1-H0. Start down only if downMove>0 and downMove>upMove; otherwise start up, including ties.",
        "seed": "If up: incomingSAR=L0, EP=H1. If down: incomingSAR=H0, EP=L1. AF starts at1/50. Process index1 through the ordinary reversal test. Thus the initial preference can immediately reverse.",
        "first_clamp": "Only in first iteration, previous high/low for output and next-SAR clamps are H1/L1 again, not H0/L0; subsequent iterations use actual preceding observed bar."
      },
      "recurrence": {
        "entering": "At each processed bar carry direction_before, incoming_sar, ep_before, af_before. Incoming SAR was prepared at the preceding completed observed bar (except the explicit second-bar seed).",
        "reversal_test": "If prior direction up: current low<=incoming_sar reverses. If down: current high>=incoming_sar reverses. Equality reverses. Perform this test before ordinary new-EP processing; at most one reversal per observed bar.",
        "no_reversal": "Output SAR=incoming_sar and retain direction. On an up state, only current high>EP updates EP and AF=min(AF+1/50,1/5); on down only current low<EP does so. Equality to EP does not update AF. ep_updated=true only on that strict no-reversal extension.",
        "up_to_down": "Output SAR=max(ep_before,previous high,current high), set direction_after=down, EP=current low, AF=1/50. ep_updated=false and reversal=true; resetting EP is recorded separately by reversal, not as a continuation extension.",
        "down_to_up": "Output SAR=min(ep_before,previous low,current low), set direction_after=up, EP=current high, AF=1/50. ep_updated=false and reversal=true.",
        "projection": "After output/reversal/EP and AF updates, raw_next=SAR+AF*(EP-SAR). If direction_after up: next_sar=min(raw_next,previous low,current low); if down: next_sar=max(raw_next,previous high,current high). Set clamp_applied to exact next_sar!=raw_next. Carry next_sar as incoming SAR of the next observed bar.",
        "exact": "Original source integer prices divided by1000000 and Fraction arithmetic for every SAR projection, comparison and AF. AF may be represented by exact integer hundredths. Published JSON/CSV numbers are float representations, not comparison inputs.",
        "outputs": "No output for index0. For all other rows output incoming_sar,direction_before,sar,direction_after,ep_before,ep,af_before,af,reversal,ep_updated,raw_next,next_sar,clamp_applied; retain source price integers and coverage metadata."
      },
      "history_policy": "Single state replay from the first two retained observed H4 buckets at or after warmup_start_utc. Keep subsequent observed partial H4 buckets and calendar gaps; no filling, gap or weekend reset. Source rows before warmup are validated but do not initialize indicator state. Gaps are marked on plots and do not by themselves prove a supplier error. No strategy indicators from reused evidence are consumed.",
      "guide_protocol_sha256": "3e40d762db6d80d57683d817bb11948ec61a0d9f39bceb9a4b6d90d162a5cfdc"
    },
    "atr14": "First observed TR=H-L. Later TR=max(H-L,abs(H-prevObservedClose),abs(L-prevObservedClose)) from exact source integer differences converted to prices. Seed with mean of first14 observed TR via math.fsum in the main binary64 implementation, then Wilder(13*priorATR+TR)/14. Partial buckets/gap jumps remain inputs. Positive finite current ATR is required for entry."
  },
  "common_entry_eligibility": "At completed decision cutoff t=signal_anchor+14400: at least100 observed H4 buckets since warmup; positive finite current ATR14; current Williams %R14 defined and current/previous SAR states defined; signal bucket and its immediate predecessor both full240-minute buckets with anchors exactly14400 seconds apart. Previous bucket may be observed number99 when current is100. All earlier indicator lookback buckets may be partial. A seed/initialization event at observed index1 is never a trading signal. Both primary and no_wr control retain identical availability, warmup, coverage and clocks.",
  "primary_signal": {
    "long": "While flat at completed cutoff: SAR direction_before=-1, direction_after=+1 and reversal=true; current WR14>-50.",
    "short": "While flat at completed cutoff: SAR direction_before=+1, direction_after=-1 and reversal=true; current WR14<-50.",
    "equality": "Exact WR=-50 fails both directional confirmations; inclusive SAR low<=incoming_sar / high>=incoming_sar reverses. Strict high>EP/low<EP alone extends EP; equality does not advance AF. Use unrounded integer WR ratio and exact rational SAR comparisons.",
    "no_added_filters": "No EMA, ADX, price breakout, WR extreme-zone recovery, fresh WR crossing, waiting for a later confirmation, trailing or target. Signals use completed H4 state, not a fill at the SAR dot."
  },
  "control_signal": "Remove only the current directional Williams %R midpoint gate. Keep current WR availability and every common SAR state, warmup, coverage, source clock, risk, stop, completed-opposite-SAR exit and cost rule. Independent account calendars may yield different opportunities; do not assume trades are nested.",
  "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 at10000USD and retains continuous observed-bucket preperiod indicator history. A qualifying immediately preperiod completed signal may enter exactly at start only when all entry quote/session conditions hold. No position or queued exit carries between accounts; no new entry at/after end and no quote beyond end is used for any fill.",
  "weekly_session": "New entries require entry timestamp inside modeled Sunday17:00 America/New_York inclusive through Friday17:00 exclusive. This is an explicit research FX clock, not an assertion of provider quote availability. Signals/rows outside it stay in source diagnostics and lookback history but cannot create a funded entry outside the session. The exact Friday17:00 cutoff cannot open a new position.",
  "entry": "Signal is known at its scheduled completed H4 cutoff. Enter only at the exact immediately next scheduled H4 opening at that cutoff, requiring an actual M1 row with that timestamp, in-period and in the modeled weekly session. Missing opening cancels entry; never defer it. Do not require the entry bucket itself later to have full coverage or use future entry-bucket metadata to censor a known opening. Long fill E=BidOpen+scenarioSpread+adverseSlippage; short E=BidOpen-adverseSlippage.",
  "fresh_signal": "No re-entry at an opening where an older position exits at that opening or is still open at that minute opening and later stops within its [minute,minute+60) interval. A completed close exit exactly at the decision cutoff, or an exit strictly before it, leaves the account flat for a fresh signal and entry at that cutoff. A fresh H4 signal after an opening exit may be used only at a later H4 decision/opening.",
  "account": {
    "initial_cash": 10000,
    "currency": "USD",
    "risk_fraction": 0.01,
    "maximum_notional_to_equity": 1,
    "max_positions": 1,
    "contract_bookkeeping": "GBP quantity is contractual exposure/collateral, not cash spent buying GBP. Do not debit long notional or credit short sale proceeds. Pre-entry account equity equals flat realized USD balance. Debit entry commission immediately; realize directional price PnL minus exit commission and financing at liquidation. All prices/costs/PnL are USD per GBP and USD; no third-pair conversion.",
    "quantity": "Dprice=2*signalATR14. Commission c=commission_pips_per_leg*pipUSDperGBP; slippage u=slippage_pips_per_leg*pip. Unit planned stop loss Lunit=Dprice+u+2*c. qGBP=min(0.01*preentryBalanceUSD/Lunit,preentryBalanceUSD/(entryFillUSDperGBP+c)). Quantity can vary continuously and include fractional amounts. The cap includes entry commission and limits entry notional to1x balance; no historical lot/margin/closeout rule is reconstructed.",
    "risk_scope": "Stop price is anchored to actual modeled entry fill, so spread and entry slippage already affect the protection level/entry relation; do not add them a second time to Lunit. Exit adverse slippage and both commissions are included. Future financing is excluded because holding duration is unknown; financing and stop gaps may exceed planned1% risk. R denominator freezes q*Lunit at entry.",
    "balance_guard": "Require positive finite pre-entry balance, quantity, Lunit and levels. Reject entries failing known-open protection validity; do not deduct entry costs on a rejected entry. If realized balance becomes nonpositive, fund no later entries, retain/report the resulting account balance and explicit insolvency limitation; do not invent margin liquidation.",
    "net_pnl": "d*q*(X-E)-2*q*c-q*carryUSDperGBPPerUnit*rolloverUnits where d=+1long/-1short and X is the adverse modeled exit fill. NetR=netPnL/(q*Lunit)."
  },
  "costs": {
    "base": {
      "spread_pips": 1.5,
      "slippage_pips_per_leg": 0.1,
      "commission_pips_per_leg": 0.25,
      "carry_pips_per_rollover_unit": 0.5
    },
    "zero": {
      "spread_pips": 0,
      "slippage_pips_per_leg": 0,
      "commission_pips_per_leg": 0,
      "carry_pips_per_rollover_unit": 0
    },
    "higher": {
      "spread_pips": 3.0,
      "slippage_pips_per_leg": 0.3,
      "commission_pips_per_leg": 0.5,
      "carry_pips_per_rollover_unit": 1.0
    },
    "units": "1pip=0.0001USD per GBP. Each commission leg is a fixed per-GBP price amount: base0.25pip=0.000025USD/GBP=$2.50 per100000GBP; higher0.5pip=$5 per100000GBP. Do not inherit the older vortex study commission$3.50 or spread1.0pip. AskOHLC=sourceBidOHLC+constant scenario spread; Ask/spread are modeled, not observed historical quotes. Adverse slippage is separate: entry +d*u and exit-d*u. Cash earns no interest.",
    "financing": "Explicit research debit for both sides, not reconstructed historical swaps or interest credits. Cutoffs Monday-Friday17:00 America/New_York; Wednesday3units, other weekdays1. No weekend cutoff or holiday value-date reconstruction. Charge when entryTime<cutoff and position remains held after cutoff. Exact opening or completed-close exit at cutoff does not pay that cutoff; within-minute exit whose interval starts at cutoff does. Entry exactly at cutoff does not pay the preceding interval. Accrue through H4 marks and pay through trade PnL. Retain financing while an exit is delayed across unavailable quotes; flag the missing path."
  },
  "exits": {
    "stop_atr_multiple": 2,
    "target": null,
    "trailing": false,
    "max_holding_h4_slots": 30,
    "stop_levels": "Fixed from entry fill: long SL_Bid=E-2*signalATR; short SL_Ask=E+2*signalATR. Require0<SL_Bid<entryBidOpen for long; requireSL_Ask>entryModeledAskOpen and positive levels for short. These strict known-open checks reject already-breached protection. Stop remains fixed; SAR dots and next_sar never trail or execute the fixed stop; a completed opposite SAR state separately queues a next-opening exit.",
    "stop_execution": "For every actual M1 row beginning at entry: long trigger uses observed Bid, short uses modeled Ask=Bid+scenarioSpread. First inspect the opening: long quoteOpen<=SL / short quoteOpen>=SL yields stop_gap at the available opening quote. Otherwise long minuteLow<=SL / short minuteHigh>=SL yields stop at SL, precision within_1m. Equality triggers. Apply adverse exit slippage X=quoteReference-d*u. There is no target and no stop/target double-touch ambiguity or target-first secondary account.",
    "oscillator": "SAR completed-state exit: long queues liquidation when a completed observed H4 has direction_after=-1; short when direction_after=+1. A fresh reversal is not required for this exit, and no Williams gate, full bucket, adjacency or100-bar entry eligibility applies. A partial exit-signal bucket is permitted and flagged; its reading becomes available only at its scheduled H4 cutoff. The first observed row has no SAR state and cannot queue an exit. A queued exit persists through quote gaps, later state changes or unavailable values. SAR dots and next_sar are diagnostics, never a trailing order or intrabar execution level.",
    "oscillator_execution": "Always execute at an observed M1 opening at/after the queued cutoff, never substitute the last minute close for a completed-SAR-state exit. The intended quote is the exact next scheduled H4 opening. If missing, retain the order until first later actual M1 opening, unless a stop or an eligible earlier hard-deadline close liquidates first. Flag delayed completed-SAR-state exits and partial exit-signal buckets.",
    "hard_deadline": "Minimum of entryTime+30*14400 scheduled seconds, the first Friday17:00 America/New_York strictly after entry, and period end. Holding slots include missing/weekend clock time. New entries are excluded at Friday17:00, so strict-next-Friday cannot create a same-cutoff week-long hold.",
    "hard_deadline_execution": "Process stop opening/range events in all observed minutes before the deadline. If the observed source minute ending exactly at a time/week/period cutoff exists and no stop touched within it, liquidate at that minute close at the cutoff. If that closing minute is absent, use the first observed M1 opening at or after that deadline and strictly before period end, checking stop-gap before any scheduled liquidation and before that later minute range. No quote at/after period end may be used. If no permissible later opening exists, liquidate at the last actual in-period minute close, record its real availability time and an early-terminal proxy.",
    "tie_priority": "At one available executable event, stop has priority, then holding-time deadline, then weekly-close deadline, then queued oscillator exit, then period end. Oscillator is eligible only at an actual in-period opening; it cannot displace an available prior completed-close period-end fill or be mislabeled as executed when no in-period opening exists. At a completed-close event no oscillator fill is eligible. A source minute stop range precedes liquidation at that same minute closing cutoff.",
    "event_precision": "Opening fills are modeled points; completed-minute close fills are modeled points at minuteStart+60. Intraminute stop event timestamp denotes minuteStart with precision=within_1m and event interval[minuteStart,minuteStart+60); it is not an exact tick execution time. Source_exit_minute_ts, exit_event_ts and event kind are separate.",
    "boundary_order": "At H4 cutoff c first finish actual minute[c-60,c) ranges and any completed-close deadline liquidation; then calculate the just-completed H4 observed-bucket decision. At actual opening c process remaining carried-position stop gap, eligible overdue time/week, queued SAR and period constraints under tie_priority. Opening exits cannot reopen at c. A position already flat before opening c, including a completed-close exit exactly c, may execute the fresh entry. Newly entered positions then face that minute range stop. Do not consult minute c later high/low when deciding whether the account was flat at its opening."
  },
  "variants": {
    "models": [
      "primary",
      "no_wr"
    ],
    "cost_scenarios": [
      "base",
      "zero",
      "higher"
    ],
    "periods": [
      "full",
      "early",
      "later"
    ],
    "account_runs": 18,
    "run_key": "{model}_{cost}_{period}",
    "full_rerun": "Each of18 combinations starts independently flat at10000USD and reruns fills, levels, quotes, size, fees, carry and one-position timing. No fixed-trade recost is substituted for account outcomes. No extra funded variant, parameter search, gate threshold change or attractive replacement after results."
  },
  "equity": {
    "mark": "At every observed evaluation H4 bucket cutoff mark immediately before opening events at that same cutoff. Include completed-close liquidations at/before cutoff, but an opening exit exactly at cutoff is still held for this pre-opening mark; a new opening entry exactly at cutoff is not yet included. Held position mark=preentryBalance-entryCommission+d*q*(BidClose for long / modeledAskClose for short minus entryFill)-accruedFinancing. It is an account mark value in USD, not net-liquidation value; hypothetical future exit commission/slippage is charged only when actual modeled liquidation occurs.",
    "peak_and_drawdown": "Initial10000USD participates in running peak. Drawdown is100*(peak-equity)/peak using every observed H4 mark; not continuous M1 or tick maximum. Final marked equity must reconcile with terminal realized balance.",
    "annual": "Group closing marks by the H4 candle UTC anchor year, equivalently scheduled cutoff minus1second. Year return=100*(last mark of year/prior year last mark-1), using initial balance for first. Includes unrealized marks, accrued costs and compounding, not a sum of trade returns.",
    "visual_projection": "Public equity chart may retain the final observed H4 mark per UTC day plus first/last. Reported metrics and replay use every original H4 mark. State sampling explicitly; no large full-M1 JSON in public assets."
  },
  "exposure": "Observed H4 bucket occupancy proxy: count a bucket if a position was held for any actual time inside [anchor,cutoff). A position exiting at the bucket opening with precision=open is not held inside that new bucket; a within-minute exit anchored at the opening is held and counts. Exclude a new position entered exactly at the closing cutoff from the previous bucket. This is not exact elapsed-time, capital-weighted or risk-adjusted exposure.",
  "metrics": {
    "account": "Return_pct=100*(terminalBalance/10000-1); end_cash; maximum H4 mark drawdown; trades/wins/losses/zeros; PF=sum positive net tradePnL/abs(sum negative net tradePnL), null if no losing trades; mean netR null without trades. Zero-trade return/drawdown0, PF/meanR null. No annualized-return metric.",
    "costs": "Sum actual commissions, financing, rollover units, modeled spread cost q*spread once per trade and two-leg slippage2*q*u. Turnover is q*(abs(entryFill)+abs(exitFill)) summed then divided by initial10000USD, label capital multiples; provide optional absolute notional USD distinctly. No double deduction of spread/slippage already inside fills.",
    "diagnostics": "Long/short trade counts, notional-cap count, missing-opening cancellations, session-clock rejections, invalid-stop rejections, delayed completed-SAR exits, delayed time/week exits, early-terminal proxies, partial exit-signal trades, gap trades, missing in-session minutes crossed, partial lookback/holding counts. Mark any period/model with fewer than30 completed trades as sample limited; no retuning."
  },
  "source_quality": {
    "gaps": "Retain every actual quote gap. Classify scheduled missing M1 anchors inside modeled Sunday17-to-Friday17 New_York sessions versus outside that research weekly clock. Do not equate missing quotes with proven feed failure or fabricate prices. Held stops remain active across unavailable paths; those paths cannot be reconstructed.",
    "trade_gaps": "Flag trades spanning unobserved in-session minute anchors between entry and exit; retain count. Also retain outside-weekly-session gap exposure separately when liquidation is delayed. These are retrospective flags, never avoidance filters.",
    "partial_lookback": "At each entry retain partial_lookback_buckets: count incomplete buckets in the signal current-inclusive last26 observed H4 buckets; partial_lookback_trades counts trades with a nonzero count. This local26-bucket diagnostic is not an eligibility filter or the complete history of the recursive SAR/ATR. Only the signal reversal bucket and its immediate predecessor must be complete and adjacent; all earlier indicator inputs can be partial.",
    "partial_holding": "Retain whether a trade occupies any partial observed H4 holding bucket, and an oscillator exit_signal_partial flag where applicable. Source coverage flags do not retroactively cancel a known entry opening."
  },
  "candidate_diagnostics": "Record every common-eligible completed directional SAR reversal: exact current Williams %R ratio and directional midpoint gate, prior/current SAR directions, incoming/output/next SAR, EP/AF/reversal/clamp diagnostics, side, count of incomplete buckets among last26 observed inputs, exact opening availability and weekly session. Keep account occupancy/action separate per model. Rejected gates are dependent candidates, not identified false/losing signals. No Aroon indicator or WR-recovery crossing is used.",
  "benchmarks": "Uninvested USD cash stays10000 with zero interest. No FX buy-and-hold is claimed risk matched; no physical-currency portfolio or external currency conversion.",
  "gallery": {
    "selection": "First chronological completed primary/base/early trade; first chronological completed primary/base/later trade; then first subsequent later trade with strictly opposite nonzero net PnL sign, otherwise next chronological later trade, otherwise unavailable. If first later trade has exactly zero PnL it has no opposite sign; use same fallback.",
    "context_before_signal_observed_bars": 20,
    "context_after_exit_observed_bars": 3,
    "no_outcome_ranking": "Only third gallery intentionally conditions on completed outcome; explicitly label that choice. Context availability never changes account entry, output or candidate order.",
    "execution_precision": "SAR state/dot visible after H4 close; not an order. Source Bid markers E/X and fixed stop converted to Bid axis for shorts. Modeled fills and fees separate. Intraminute stop interval [source_exit_minute_ts,source_exit_minute_ts+60) is not a known tick time."
  },
  "independent_verification": {
    "independence": "After owner freezes protocol and exact source manifest, each implementation logs its own code/protocol/manifest SHA before first calculation. Main binary64 and separate Decimal50 rebuild each read original selected ZIP fields, normalize independently, and calculate own indicators/candidate/event/account ledgers. Independent checker must not read/import main implementation or indicators/results before its own code and complete results are locked.",
    "comparisons": "All source integrity and exact normalized M1 fingerprint fields, every H4 aggregate/coverage flag, exact Williams %R availability/midpoint sign and SAR state/EP/AF/seed/touch/clamp decisions,18 account event ledgers, quantities/costs/carry, all H4 marks/annual metrics and chronological example selection. Exact discrete decisions; document implementation corrections without changing frozen economic parameters.",
    "absolute_tolerances": {
      "price_atr_indicators": 1e-08,
      "usd_cash_equity_pnl_fees_financing": 1e-06,
      "dimensionless_metrics": 1e-08,
      "gbp_quantity": 1e-08
    },
    "boundaries": [
      "SAR first seed downMove/upMove and tie preference; first clamp current row, initialization not an entry",
      "Inclusive equality reversal before strict EP extension, one reversal maximum per bar; exact rational next clamp and AF cap",
      "Williams exact -50 rejects directional gate, tiny unrounded midpoint differences, zero range unavailable in both arms",
      "Observed warmup99/100 across gaps/partial rows, signal and preceding bar full/adjacent only",
      "Fixed EST source versus New York DST weekly/rollover clocks; identical/conflicting source duplicates",
      "Missing exact next opening cancels; Friday17 session boundary; no future entry-bucket censoring",
      "Long Bid/short modeled Ask stop-gap and equality, entry minute stop, known-open invalid protection rejects entry",
      "No same-open entry after carried position open/within-minute exit; completed-close cutoff exit permits fresh entry",
      "Opposite completed SAR state exits on level even in partial bucket without WR gate; queue persists through gaps",
      "Stop before completed-close deadline and before delayed opening, time/week/SAR/end eligible event priorities",
      "Thirty scheduled H4 intervals/strict-next-Friday, absent deadline minute fallback, no quote beyond end",
      "Rollover entry/open/close/within-minute equalities; Wednesday triple, delayed path financing",
      "Base0.25pip commission=$2.50per100000GBP; higher0.3pip slippage; spread counted once in fills",
      "One-times notional cap hypothetical contract accounting, fractional GBP, no physical notional cash debit",
      "Preopening H4 marks versus opening fills, initial peak, candle anchor year, sampled daily plots versus all marks",
      "Independent flat period restarts and full18scenario recalculation; zero trades and exact-zero quoted net PnL",
      "Chronological early/later examples and explicitly outcome-conditioned opposite-sign/next/unavailable fallback"
    ]
  },
  "research_disclosure": "Retrospective evaluation of previously reused historical GBPUSD prices, not a prospectively unseen validation set. Rules, clocks, periods, sources, models and illustration predicates are frozen before this study calculation. SAR and Williams %R share the same Bid OHLC inputs; agreement is not independent information or evidence of live execution/profitability. The guide-style inclusive SAR touch/order is explicit and differs from the older strict-touch SOL study; this is an implementation convention, not an extra profitable signal. Ask, spread, slippage, commission and financing are modeled assumptions. No parameter search or future-profit claim.",
  "sources": [
    "https://www.tradingview.com/support/solutions/43000502597-parabolic-sar-sar/",
    "https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_SAR.c",
    "https://www.tradingview.com/support/solutions/43000501985-williams-r-r/",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  ],
  "source_manifest": "source-manifest.json",
  "source_manifest_sha256": "b1ab8f1d2bbea5a99b5593d07046e0819ce1d3bc305095a2fa380a6a0ed5b183",
  "frozen_at_utc": "2026-11-16T12:37:04.146683+00:00"
}
