{
  "id": "mpf-eurjpy-h4-cci20-zero-line-sar-trail-20261116-v1",
  "status": "FROZEN_BEFORE_NEW_STRATEGY_SOURCE_SCAN_OR_CALCULATION",
  "instrument": "EURJPY HistData M1 observed Bid; scenario Ask; hypothetical JPY contractual account",
  "question": "Does a prior-information Parabolic SAR protective trail improve on identical fixed ATR protection and completed opposite-SAR-state exit for CCI zero-line continuation entries?",
  "bar_seconds": 14400,
  "source_price_scale": 1000000,
  "pip_size": "0.01",
  "warmup_start_utc": "2019-06-01T00:00:00Z",
  "source_selection": {
    "raw_directory": "data/eurjpy-aroon/raw",
    "files": [
      "EURJPY-M1-2019.zip",
      "EURJPY-M1-2020.zip",
      "EURJPY-M1-2021.zip",
      "EURJPY-M1-2022.zip",
      "EURJPY-M1-2023.zip",
      "EURJPY-M1-2024.zip",
      "EURJPY-M1-2025.zip"
    ],
    "years": [
      2019,
      2020,
      2021,
      2022,
      2023,
      2024,
      2025
    ],
    "selected_files": 7
  },
  "source_manifest_sha256": "1d7ad30f49b21ec6a3fbf92b07d4460770b4737e02c125888c1a8e4f72b35732",
  "source_policy": "Read only the seven named original ZIPs. Verify size/SHA256, ZIP CRC, exact manifest member metadata and one exact EURJPY M1 CSV identity. All CSV rows must have6 semicolon fields, valid fixed-EST minute labels and positive internally consistent OHLC with at most6 decimal places. Ignore placeholder volume rather than invent consolidated volume. Preserve input metadata diagnostics. Sort normalized UTC rows; collapse only byte-identical rows at the same original stamp, recording duplicates and backward jumps; conflicting duplicates fail. Reject duplicate UTC rows across archives. Retain rows at/after warmup and before2026-01-01 UTC. Never use later source rows for a period account.",
  "aggregation": "Floor actual UTC source-minute opening labels to00/04/08/12/16/20 anchors. H4 O is first observed O, H=max H, L=min L, C=last observed C. Preserve n/first_ts/last_ts and original1e6 OHLC integers. Full bucket iff n240 and first_ts=anchor and last_ts=anchor+14340. Observed partial buckets participate in indicator history; gaps do not fill/reset it. H4 source O of a partial bucket is not claimed as a quote at its anchor. Preserve all missing observed minute intervals and distinguish weekly-session versus in-session absence diagnostically; neither proves provider error.",
  "time_availability": "Each observed H4 aggregate and its indicators are available at its nominal anchor+14400, including explicitly marked partial OHLC proxies. A partial closing aggregate never supplies an entry crossing because both crossing bars must be full. Its already completed OHLC can supply a held-position SAR state or next-SAR trail at its nominal end. Actual entry needs an original M1 O exactly at the next scheduled H4 anchor. No later high/low/close or later coverage label may censor a known entry opening. Execution examines original M1 Bid fields and known-before-minute stops, never a same-H4 SAR dot derived from later extrema.",
  "indicator_history": "Continuous observed-bucket history from warmup. ATR, CCI and SAR use observed partial lookbacks and carry across ordinary missing/weekend H4 anchors without filling/reset. Entry needs current observed_index>=99, positive ATR14, adjacent full previous/current H4 anchors, defined previous/current exact CCI and defined previous/current SAR directions. This is100 observed buckets, not100 consecutive full buckets.",
  "cci20": {
    "period": 20,
    "tp": "(H+L+C)/3",
    "mean": "Current-inclusive20 TP mean.",
    "mad": "Mean of abs(TP_i-current same mean) over those same20 observations.",
    "cci": "(TP_current-mean)/(0.015*MAD);0.015=3/200 exact. With z=H_int+L_int+C_int,S=sum(z),A=sum(abs(20*z-S)), CCI=4000*(20*z_current-S)/(3*A).",
    "unavailable": "A=0 gives null CCI, not zero/previous substitute. Exact reduced rational numerator/denominator strings and exact sign determine crossings before rounding."
  },
  "sar": {
    "parameters": {
      "start": "0.02",
      "step": "0.02",
      "maximum": "0.20"
    },
    "variant": "Exact rational audited guide variant, including inclusive touch reversals, strict EP extension and seed/clamp order. No claim of platform bit identity.",
    "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."
    }
  },
  "atr14": "Build each true range exactly from original H/L/C integer prices divided by1000000: first observed TR=H-L; later TR=max(H-L,abs(H-Cprev),abs(L-Cprev)). ATR14 is unavailable before14 observed buckets. Seed with the exact Fraction sum of the first14 TR divided by14; every later observed-bucket update is exact Fraction(13*previousATR+currentTR)/14. Retain observed partial lookbacks and continuous history across calendar gaps as declared; no binary64/Decimal ATR seed, intermediate rounding or floating recurrence is used in either engine. Both engines independently reproduce the same reduced rational ATR from original source integers. Exact ATR determines positivity, initial protective stop and planned per-unit loss. Convert rational prices/ATR to numeric projections only for display and the separately declared binary64(primary)/Decimal50(independent) quantity/account arithmetic. Source prices, CCI, SAR, ATR, S0, active-stop decisions and net-unit classification remain exact.",
  "entry_signal": "Long iff common eligibility AND previous exact CCI<=0<current exact CCI AND direction_after previous=current=up. Short iff common eligibility AND previous exact CCI>=0>current exact CCI AND previous=current=down. Thus a fresh SAR reversal cannot be the entry. No CCI±100 gate, trend MA, target, added exposure, threshold search or parameter tuning. Preserve zero equality on the preceding CCI only; current0 is neither crossing.",
  "entry_timing": "Queue only for signal_anchor+14400, within[start,end), actual M1 O exactly then, and inside Sunday17:00 to Friday17:00 America/New_York. Missing exact quote cancels permanently. One position; no automatic reversing. An opening liquidation cannot reopen at that same opening; a completed signal following an earlier intraminute or close liquidation may queue the next opening. Accounts start flat; a valid immediately preceding close can enter exactly at start using carried indicator history. Evaluate entry eligibility/queueing only when flat after all events belonging to the completed signal interval, including a close liquidation at that interval end. A crossing while still held is diagnostic only and never stores an entry for later reversal. At the one exact requested opening, occupied, out-of-session, missing-quote, invalid-protection or insolvent dispositions expire that request permanently; a later intraminute exit cannot revive it. Session bounds are Sunday17:00 inclusive through Friday17:00 exclusive in America/New_York, with no Saturday entry. Conflicting simultaneous long/short entry predicates fail rather than choosing by future results. Occupied diagnostic status is decided before flat-balance insolvency; do not read the future realized result of a still-held trade to classify a current candidate.",
  "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"
    ]
  },
  "account": {
    "currency": "JPY",
    "initial_cash": 1000000,
    "risk_fraction": "0.01",
    "notional_cap": "1 times pre-entry JPY equity including entry commission",
    "contract_units": "EUR",
    "max_positions": 1,
    "leverage": false
  },
  "costs": {
    "base": {
      "spread_pips": "2",
      "slippage_pips_per_leg": "0.2",
      "commission_jpy_per_100000eur_per_leg": "500",
      "carry_pips_per_rollover_unit": "0.5"
    },
    "higher": {
      "spread_pips": "4",
      "slippage_pips_per_leg": "0.4",
      "commission_jpy_per_100000eur_per_leg": "1000",
      "carry_pips_per_rollover_unit": "1"
    },
    "zero": {
      "spread_pips": "0",
      "slippage_pips_per_leg": "0",
      "commission_jpy_per_100000eur_per_leg": "0",
      "carry_pips_per_rollover_unit": "0"
    }
  },
  "cost_conversion": "Exact decimal costs: spread/slippage/carry in pips×0.01 JPY/EUR; commission=JPY per100000EUR/100000, JPY per EUR per leg. Build exact Fractions from decimal text, not binary floats. Long entry=Bid O+spread+slippage; short entry=Bid O-slippage. Long exit reference is Bid; short reference is modeled Ask=Bid+spread. Actual exit=exit_reference-direction×slippage. Charge equal per-unit commissions each side and modeled carry. No historical Ask, margin/stop-out, swaps, broker fee tiers or actual lot/tick filters reconstructed; no USD conversion or third currency.",
  "initial_stop_and_size": "Construct exact entry fill E_exact from the original source Bid opening and exact scenario spread/slippage: long O+spread+slippage; short O-slippage. With exact signal ATR14, initial executable exit-quote stop S0_exact=E_exact-direction*2*ATR14_exact (Bid for long, scenario Ask for short). Reject the whole entry if Bpre<=0, E_exact<=0, S0_exact<=0, or protection is already at/beyond the known executable exit-side opening (long S0_exact>=Bid O; short S0_exact<=Bid O+spread), or exact planned unit loss<=0. Bpre<=0 is insolvent and E_exact<=0 is invalid_entry_price; other protection failures are invalid_stop. Planned stop fill is S0_exact-direction*exact exit_slippage. Exact Lunit=direction*(E_exact-planned_stop_fill)+2*commission=2*ATR14_exact+exit_slippage+2*commission. Use q=min(0.01*Bpre/Lunit,Bpre/(abs(E_exact)+commission)) in the engine declared account arithmetic, converting the exact positive denominator/reference to that arithmetic only for this sizing/account projection. Require finite positive Bpre and q; nonfinite account state fails the run rather than selecting a trade by a tolerance. Entry commission debits cash immediately. Freeze initial q, exact Lunit and the numeric q*Lunit monetary R denominator; the trail never resizes or changes the initial R. Do not add spread/entry slippage again because exact E already contains them. Financing is excluded from initial stop-risk denominator, so carry and gaps can exceed planned1%. Keep a realized nonpositive balance without flooring/top-up as declared. Fractional EUR units allowed; contractual accounting only.",
  "primary_trail": "Primary starts with only S0. At each completed observed H4 while still held, beginning with the entry H4 completion, if direction_after equals held direction and no time/week liquidation is already due, prepare next_sar from that completed bar. New executable stop=max(old stop,next_sar) for long Bid; min(old stop,next_sar+scenario spread) for short Ask. Never loosen. Activate immediately after that nominal close, for following observed minute openings/paths only; retain through absent quotes. No tightening from the entry signal before the entry H4 completes. Source next_sar is a prospective stop input, not a fill. Record every considered update, exact SAR numerator/denominator, before/after stop, decision and activation time, tightened flag and originating completed bar. A queued opposite-state exit prevents new tightening.",
  "control": "no_trail removes only subsequent SAR tightening. Same exact CCI entry/state, common mask, S0, sizing/R formula, completed opposite-state exit, calendar, costs and independent period financing. Each calendar/account reruns independently; fills/quantities and participation need not be nested. Do not interpret account difference as isolated causal sum of trades.",
  "opposite_state_exit": "Any defined completed SAR direction opposite the held direction queues liquidation at its nominal H4 end for the next actual observed M1 opening at/after that instant. Partial observed H4 may supply this completed state and is flagged. Queue persists despite missing quotes or subsequent changes. Do not trade the plotted reversal SAR dot. If fixed time/week exit is also pending, choose the earliest due cutoff; tied cutoff reason priority is opposite_state, time, week_close. Stop gap still precedes any queued exit.",
  "time_and_week": "Holding deadline=entry+30×14400 elapsed UTC seconds, including absent slots. Weekly cutoff is next Friday17:00 America/New_York strictly after entry. At a deterministic cutoff, if original M1 at cutoff-60 exists inside period and position survives its stop test, use its C at cutoff (close precedes next-opening events). Otherwise queue liquidation to first observed opening>=cutoff inside period. After a time/week cutoff is due, no new trail tightening. Both observed source calendar and no-quote delay remain explicit.",
  "event_priority": [
    "Process each UTC clock t in chronological phases. First finish any actual preceding source-minute interval [t-60,t): its already-known active-stop range test has priority over any permitted time/week close or last in-period terminal proxy at t. Use C only when the exact in-period minute t-60 exists; otherwise a due time/week obligation becomes or remains pending, never a fabricated close. If time and week share the close cutoff, time wins the reason tie. A period-terminal in-period close precedes obligations needing any future out-of-period opening.",
    "At a nominal observed H4 end t, after such preceding-minute close liquidation and before every opening/intraminute event at t, emit that H4 equity mark from the available completed H4 close and the held state/ledger at this phase. Rollover at t has not yet accrued in this mark. Then use the just-completed H4 only to queue a persistent opposite-SAR-state exit, prepare/activate an eligible primary trail, or when flat queue an eligible signal for its one exact next opening. Do not calculate any of these from later H4 extrema.",
    "For an original observed M1 opening at t, test the stop active after the preceding close/H4 phases for an executable-quote gap; equality touches. If hit, liquidate at that observed opening with adverse exit slippage. This gap precedes all pending obligations.",
    "If still held at the observed opening t, execute the earliest due pending opposite/time/week obligation. Tied due cutoffs use opposite_state, time, week_close reason priority. A liquidation at this opening forbids another entry at this same opening. If flat without an opening liquidation, execute only an eligible request whose exact requested time equals t; any failure expires it.",
    "At each scheduled rollover clock t, independently of whether an original M1 opening exists there, debit positions entered before t that survive all preceding close/open liquidations at t. An entry at t is not charged at its own cutoff. If no quote exists at t, pending exits do not erase the held position or its carry obligation. This debit precedes a surviving current-minute range touch.",
    "For an actual current source minute [t,t+60), test its Bid range against the stop already active before this minute: long Bid low<=Bid stop; short Bid high+scenario spread>=Ask stop. A range touch uses the active stop reference and adverse exit slippage; its tick time is unknown inside the half-open interval. Continue to the next clock, where preceding-minute close events are processed before any new H4/opening events."
  ],
  "exact_stop_comparison": "Original source prices/costs, ATR14, E_exact, S0_exact, planned Lunit, SAR and every spread-adjusted SAR candidate/active stop retain exact reduced Fraction values. Both engines must reproduce the same exact price references, including the initial stop; never construct a comparison stop from a binary64/Decimal rounded ATR or stop projection. Long tests compare original Bid O/L with the exact Bid stop; short tests compare exact Bid O/H+scenario spread with the exact Ask stop. Equality touches. Trail max/min and all validity inequalities are exact before display rounding. Optimized searches may use floating approximations only as a conservative candidate superset: confirm exact rational candidates and any adjacent source-price-unit boundary so an approximation cannot omit a true touch or choose the wrong first observed minute. Neither a rounded axis value nor a same-H4 output dot decides execution. Binary64 versus Decimal50 is limited to quantity, cash, cost/PnL amounts, equity/annual marks and their numeric metric projections, with declared tolerances; exact rational price/stop/net-unit identities and discrete event decisions have no numeric tolerance.",
  "period_end": "No source O/H/L/C from rows anchored at or beyond period end is borrowed. Liquidate a remaining position at C of last observed in-period M1, available at that minute+60; if before nominal end label explicitly early_terminal_proxy. Stop test inside that last minute precedes the terminal close. This terminal obligation takes priority over exits requiring a future out-of-period opening. Last-period H4 mark may show already realized terminal cash. Each account starts independently with1000000JPY and no position/exit queue; preperiod indicators carry.",
  "financing": "Both directions debit carry at Monday–Friday17:00 America/New_York; Wednesday3units, other weekdays1. No holiday/value-date reconstruction. Scheduled carry clocks exist even if the source has no M1 quote at the cutoff; holding and pending obligations persist until an actual modeled liquidation. For an opening or close exit at t, include only carry cutoffs strictly after entry and strictly before t. For an intraminute stop in[t,t+60), also include a cutoff exactly at t when the position was entered before t and survived its opening events; debit precedes the unknown within-minute touch. Do not charge a new entry at its own cutoff. Annual/H4 marks at t include carry cutoffs strictly before t only; a cutoff at that shared boundary is processed after the H4 mark and after close/open exits, but before a surviving current-minute touch. Carry continues while a due time/week/opposite-state exit waits for a later observed quote.",
  "ledger": "Contractual JPY: Bpre is flat cash immediately before entry fee; cash while held=Bpre-q*commission-q*carry*accrued_units. Net PNL=direction*q*(X-E)-2q*commission-q*carry*units. Final cash=Bpre+netPNL. Never fund/pay an actual EUR purchase in this contractual ledger, and never treat short proceeds as free cash. Initial q*(abs(E)+commission)<=Bpre. Exact rational source/cost/active-stop references determine net unit sign including exact-zero; account arithmetic uses declared float/Decimal precision. Record spread/slippage/fee/carry cost totals as diagnostics already included, never subtract twice. For classification, construct exact E_exact from source entry Bid O and exact scenario spread/slippage, and exact X_exact from the declared executable exit reference less direction×exact exit slippage. Let exact net_unit=direction*(X_exact-E_exact)-2*commission-carry*rollover_units; with positive q, its exact sign determines positive/negative/exact-zero trade class before any float/Decimal multiplication or display rounding. Keep this exact classification separate from account-precision amounts and the frozen initial R denominator. A realized cash balance<=0 is retained without flooring, forced recapitalization or deletion of the loss; no further entries are allowed while nonpositive. Net return/drawdown may therefore include such contractual losses. This does not introduce a broker margin/stop-out model.",
  "equity": "At every observed evaluation H4 nominal close anchored inside period, take modeled net liquidation value Bpre+direction*q*(current Bid C+short spread-direction*slippage-E)-2q*commission-q*carry*units for a still-held position; cash if closed. Apply only exits that occur earlier than that cutoff or close exits exactly there, not opening/intraminute events at the same cutoff. Initial cash participates in peak. Max drawdown is every H4-close sampled equity, not M1/tick or intrabar extremes. Visual curve may use last H4 mark per UTC day; full marks remain in proof. Final cash reconciles with terminal mark.",
  "annual": "Same-account successive year-end H4 marks/previous year-end, first denominator initial cash; compounded net liquidation returns, not sums of trade percentages. Membership follows source H4 opening anchor, so final December H4 remains December even if nominal end January1. Full/early/later independently funded retrospective spans, not unseen forward tests.",
  "metrics": [
    "net return/end cash",
    "H4-close drawdown",
    "completed trades long/short/net positive/negative/exact zero",
    "net profit factor null if no losses",
    "mean net R null if no trades",
    "fees/carry/spread/slippage and turnover separately labeled",
    "trail updates/tightenings/trades with tightening",
    "missing exact entries/invalid initial protection/delayed obligations/partial and gap flags"
  ],
  "exposure": "Observed H4 occupancy counts an H4 bucket when a position spans any portion of it, including an exit at that bucket opening. Divide by observed evaluation H4 rows. It is not elapsed-time or capital-weighted exposure.",
  "quality_flags": "Preserve partial20-CCI lookbacks, partial held H4/source exit-signal/trailing-update inputs, in-session missing minutes and weekly no-quotes crossed, delayed exits and early terminal proxies. Flags are retrospective diagnostics, not extra entry/avoidance conditions. A missing intraminute/tick path is not interpolated. A supplied Bid OHLC extreme establishes at most a modeled minute-range touch, never an observed exact stop fill.",
  "candidate_records": "Every common-eligible signed CCI zero crossing agreeing with both SAR states in each account/period, including held candidates. Store previous/current exact CCI, SAR states/nextSAR/AF, raw opening availability and session status, action occupied/outside_session/missing_open/invalid_stop/entry/insolvent/invalid_entry_price. Invalid-entry-price is the explicit E<=0 validity disposition; retain every such rejection rather than dropping the candidate. Gate and calendar/account dispositions remain distinct.",
  "runs": "2 models(primary,no_trail)×3 costs(base,zero,higher)×3 independently funded periods=18 strategy accounts; separate0%-cash references. No leveraged buy-and-hold benchmark invented for this contractual FX model.",
  "example_selection": {
    "early": "First chronological completed primary/base early trade.",
    "later": "First chronological completed primary/base later trade.",
    "opposite": "First completed primary/base later trade with strictly opposite net sign to first later case; if absent, next chronological completed later trade, otherwise unavailable. If first net sign0, use next trade fallback directly. Explicitly outcome-conditioned teaching illustration, not unbiased sample.",
    "context": "20 observed H4 rows before signal through3 after exit when available. Future context never ranks/replaces an example. Preserve first examples even if unfavorable."
  },
  "display": "Six figures: account equity, costs, first early/later/conditional third example and annual returns. Price pane Bid OHLC with SAR dots and correct Bid-equivalent dynamic protective stop (short Ask stop minus scenario spread), no joining SAR dots across reversals; CCI pane symmetric whole-window scale at least±200 with zero and±100; optional AF pane fixed0..0.20. Mark S completed signal,E observed entry Bid O,X declared exit Bid-equivalent reference; actual executable fills are separately labeled. Trail is a step known before the affected interval, never an offset current dot. Partial bodies outlined, gaps marked and observed-index spacing disclosed. Fixed axes/markers, only cursor/readings move. Source OHLC3decimals, derived prices/SAR/ATR6,CCI2,AF2,JPY results2 and R3. Monetary ledger JPY, price JPY per EUR, quantity EUR.",
  "independent_verification": {
    "method": "Separately written raw-ZIP loader, normalization/aggregation, exact CCI/SAR/ATR14 and full execution/account engines. Independent consumes only frozen protocol/manifest/originals; does not read primary code or results until own code/result locks. Lock code before first synthetic/historical calculation, lock results before comparison. Compare every H4 field, discrete signal/stop/exit/queue/trail decision, trade, mark, annual and displayed metric, not only rounded output. Preserve defects/corrections without retuning economic rules. Both engines derive exact prices, ATR14, S0/Lunit, protective-stop updates and net-unit values from their own original-field path; no primary rational arrays are copied into independent results. Primary binary64 and independent Decimal50 are used only after these exact references for the declared q/cash/mark/account projections. Exact-reference output is not weakened to a tolerance because its integer representation is large.",
    "absolute_tolerances": {
      "price_atr_indicators": 1e-08,
      "cash_pnl_equity_costs_jpy": 0.0001,
      "quantity_eur": 1e-08,
      "dimensionless_metrics": 1e-08
    },
    "exact_checks": "All source integers, timestamps, counts, reduced rational CCI/SAR/ATR14, exact entry/exit price references, initial S0/Lunit, every proposed/before/after/active protective stop, exact net-unit value/sign including zero and all discrete event/quote-side/selection flags must match exactly. Store canonical numerator/denominator strings for required exact references in the full verification output (reduced pair, positive denominator, zero as0/1); do not compare only rounded numeric projections. Quantity, cash, monetary PNL/cost/equity/annual values and displayed numeric metric projections retain the declared account tolerances. The price_atr_indicators tolerance applies only to optional numeric projections, never to exact reference/decision agreement."
  },
  "audited_dependencies": {
    "cci-guide": "cb14cfc36b89a13d6dd748a40e59fbd328ee1bc3db924365bee459e7cea762bd",
    "sar-guide": "3e40d762db6d80d57683d817bb11948ec61a0d9f39bceb9a4b6d90d162a5cfdc"
  },
  "sources": [
    "https://github.com/TA-Lib/ta-lib/blob/main/src/ta_func/ta_SAR.c",
    "https://www.tradingview.com/support/solutions/43000502001-commodity-channel-index-cci/",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/",
    "https://www.histdata.com/f-a-q/"
  ],
  "research_disclosure": "Already reused historical venue/source prices, not prospectively unseen data. Definitions fixed before this strategy scan/calculation. Costs/Ask/execution/rollover modeled. CCI and SAR share OHLC, not independent information. Retain negative/sparse/zero results and null ratios; no threshold/date/source changes after viewing performance.",
  "cost_diagnostics": "For each completed positive-quantity trade, report JPY commission_cost=2*q*commission, financing_cost=q*carry*rollover_units, spread_cost=q*scenario spread (long pays modeled spread at entry, short at exit, once per round trip), and modeled_slippage_cost=2*q*scenario slippage. Record entry and exit slippage separately as q*scenario slippage per leg. These diagnostic costs are already inside the contractual net ledger; never subtract them again or call their difference a causal decomposition across independently rerun scenarios. Gross filled turnover in JPY=q*(abs(E_fill)+abs(X_fill)); any turnover/initial-capital multiple is a separately named field using the account initial JPY cash. Sum trade diagnostics for account totals; retain unrounded account-precision values and declared tolerances. These are modeled constant-spread/additive-cost diagnostics, not reconstructed historical spreads or quote-side observations.",
  "serialization_clarifications": {
    "candidate_clocks": "signal_ts=completed signal H4 opening anchor; decision_ts=signal_ts+14400. Candidate is diagnostic even if held, but never queues a stored reversal entry.",
    "cci_cross_diagnostic": "cci_cross±1 only if immediately preceding observed H4 anchor is exactly14400 seconds earlier and both exact CCI values are defined; previous<=0<current long,previous>=0>current short. No full-bucket/100-bar mask for the diagnostic alone; signal then applies common full/100/ATR/SAR eligibility.",
    "intraminute_clock": "within_1m exit_event_ts is the source M1 opening label t. Execution time is only known to lie in[t,t+60); source_exit_minute_ts=t. Do not call t an observed exact stop timestamp.",
    "normalization": "normalization.source_files and data_quality.source_files are integer counts7. normalization.rows is retained sorted M1 count; data_quality.rows is observed H4 count; source_minute_rows is retained M1 count. missing_h4_anchors is sum(max(0,(current_anchor-previous_anchor)//14400-1)). Duplicate row numbers1-based. Byte-identical means all original line bytes including their original CR/LF; line_sha256 hashes those exact original bytes without stripping. source_backward_jumps means strictly lower original source stamp, not equal.",
    "protective_obligations": "If protective stop/stop_gap wins, reason remains protective and deadline/deadline_reason are null, even if another obligation is pending; opposite_deadline retains first previously queued opposite cutoff if any. delayed_exit=true only for a nonprotective opposite_state/time/week_close exit when its observed opening timestamp is strictly after its triggering deadline. partial_exit_signal=true only for an actual opposite_state exit whose queued source H4 was partial; a stop winning over that queue has false. For period_end deadline=end,deadline_reason=period_end; early_terminal_proxy marks actual last inperiod minute+60<end.",
    "gap_trade": "crosses_gap means at least one in-session unobserved scheduled M1 timestamp strictly after entry and before an opening/close exit, or through the stop source-minute anchor inclusive for within_1m. missing_open_minutes_crossed counts those; outside_session_missing_minutes counts remaining absent scheduled timestamps over the same range. Weekly no-quote periods are distinguished and are not by themselves feed errors.",
    "cap_flag": "notional_capped is the exact comparison0.01*(abs(E_exact)+commission)>Lunit; equality is not flagged. Cash cancels from this comparison for positive Bpre, avoiding arithmetic-dependent flags.",
    "action_vocabulary": "Use schema actions outside_weekly_session,occupied,insolvent,missing_entry_open,invalid_entry_price,invalid_stop,entry in this causal priority. Occupied means held after the completed-signal phase or liquidation at the same requested opening; never use the future cash_after of that ongoing trade to classify insolvency. Only when flat assess the realized known Bpre. Invalid entry price is checked before protection/sizing. No condition changes signals."
  },
  "frozen_at_utc": "2026-11-16T16:10:04.276746+00:00",
  "site_baseline": "V388; source5ce2bb2a9471c77cc10133581c430a79818051a5",
  "prior_item_audit_live_verified": true
}
