{
  "study": "EUR/USD H4 TRIX15 + EMA9 signal",
  "status": "frozen before first strategy performance calculation",
  "symbol": "EURUSD",
  "timeframe_seconds": 14400,
  "warmup_start": "2019-01-01T00:00:00Z",
  "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"
    ]
  },
  "research_scope": "Retrospective fixed-rule demonstration. The archived history was familiar from previous studies; this split is not an unseen prospective test. Preset TRIX15+EMA9; no search over lengths, thresholds, stops or periods. Publish all fixed scenarios regardless of result.",
  "source": {
    "provider": "HistData Generic ASCII M1 Bid",
    "raw_directory": "data/eurusd-vortex/raw",
    "manifest": "data/eurusd-vortex/manifest.json",
    "timestamp": "Fixed EST UTC-05 with no DST; add18000seconds forUTC. The separate NewYork trading-week/financing calendar observes DST.",
    "normalization": "Validate pinned SHA256 and ZIP CRC; one EURUSD CSV peryear. Sort actual UTC minutes. Collapse only byte-identical rows at an identical source timestamp, reject conflicts. Retain all original ZIPs. Ignore placeholder volume. No fabricated or interpolated minutes. Trim to warmupStart<=t<2026-01-01UTC.",
    "h4": "Buckets floor(UTCepoch/14400), first actual Bid open/maxhigh/minlow/lastactualclose. Retain partial buckets and their first/last observed minutes. Indicator close becomes a disclosed stale-price proxy if final minute absent; available only at scheduled H4 cutoff. No future bucket ranges or metadata gate an already observed opening.",
    "indicator_history": "All observed H4 buckets in chronological order, including partial buckets and across scheduled gaps/weekends; no artificial flat candles and no gap reset. Entry crossings require immediately adjacent scheduled H4 anchors. Level exits require valid current indicator, not an adjacent prior bucket.",
    "source_authenticity": "Pinned original bytes from retained downloads, not newly fetched or provider-published checksums."
  },
  "indicators": {
    "ema15": "Three successive EMA15: E1 on close, E2 on E1, E3 on E2. Each stage seeds with arithmetic mean of its first15defined observations; subsequent alpha2/16. E1 first index14,E2index28,E3index42. This is three-stage smoothing, not TEMA=3E1-3E2+E3.",
    "trix15": "100*(E3_t-E3_previous_observed)/E3_previous_observed; first index43. Percentage change per observed H4 bucket, not a price or a bounded oscillator. If a scheduled gap intervenes, the change spans that gap.",
    "signal9": "EMA9 of defined TRIX values, seedmeanfirst9, subsequentalpha2/10; firstindex51. Signal is an average of TRIX, not price EMA9.",
    "atr14": "Wilder ATR14: firstTR=H-L; laterTR=max(H-L,abs(H-prevObservedClose),abs(L-prevObservedClose)). Seedmeanfirst14TRs; thereafter(13*prevATR+TR)/14. Gaps retained through prev observed close.",
    "numeric_decisions": "Use unrounded binary64 recursions and strict comparisons; display rounding never creates a crossing. Independent Decimal40 comparison must produce identical discrete decisions; failures investigated without choosing profitable rules."
  },
  "entry": {
    "cross": "When flat, long if previousTRIX<=previousSignal AND currentTRIX>currentSignal; short if previousTRIX>=previousSignal AND currentTRIX<currentSignal. Current/priorTRIX andsignal defined, currentATRpositive, previous/current anchors exactly14400apart. Firstpossiblecrossindex52.",
    "zero_gate": "Primary also currentTRIX>0 forlong, <0 forshort; equalityzero fails. Gate only entries, not exit rule. Comparator removes only this gate.",
    "execution": "At immediately next scheduled H4 opening, require an actual M1 opening exactly at that timestamp inside period. Missing exact minute cancels entry, even if another minute later inbucket exists. Longfill=sourceBidOpen+scenarioSpread+slip; shortfill=sourceBidOpen-slip.",
    "eligibility": "Only enter within model weeklysession [Sunday17:00,Friday17:00) America/New_York. A signal can use prior valid history across account restart; no inherited position. No same-opening re-entry after opening or intraminute exit. An exit at prior minute close permits a fresh completed-H4 decision at the same cutoff.",
    "position": "One position only, no pyramiding, reversal or hedging; fractional EURquantity; no historic minimumlot/steps reconstructed."
  },
  "account": {
    "initial_cash": 10000,
    "risk_fraction": 0.01,
    "notional_cap": "Entry EURnotional+entrycommission<=preentryUSDcash, for either direction; no leverage at entry. USD collateral/mark-to-market research account, not actual delivery of EUR or a broker margin schedule.",
    "planned_loss": "D=2*signalATR14. Lunit=D+exitSlippage+2*commissionUSDperEUR. q=min(0.01*B/Lunit,B/(abs(entryFill)+commissionUSDperEUR)). Nominal stop budget excludes future unknown holdingcharges and opening gaps.",
    "net_r": "Realized directionalpricePnL minus bothcommissions and realizedfinancing, divided by entryq*Lunit. Nominal1%budget is not guaranteed maximum loss."
  },
  "exit": {
    "fixed_stop": "LongSL=entryFill-2ATR; shortSL=entryFill+2ATR, positivefinite. For long requireSL<entryBidOpen; forshort requireSL>modeledAskOpen. No target, trailingstop or stopupdates.",
    "quote_side": "Longexittrigger/sourcequoteBid; shortexittrigger/modelAsk=Bid+scenarioSpread. Exitfill=exitReference-direction*slip.",
    "indicator_level": "Valid completedTRIX<=signal forlong or >=signal forshort queues exit at that H4cutoff (nextscheduledbaropen). Equalitytriggers. A queuedexit stays pending across missing quotes; first observed M1opening at/afterqueuedcutoff executes. No newcross required and no zero-level exit. Identical forprimary/comparator.",
    "order": "At each observedminuteopening: openingstopgap first, then pendingindicator exit, then overdue earliestdeadline; onlythen inspect subsequentminuterange forstop. Stopgap uses actualopeningreference. IntraminutestopusesSLreference. No imaginedticktime.",
    "deadlines": "Earliest of entry+30*14400 calendarseconds, nextFriday17:00 America/New_York, evaluatedperiodEnd. Stop checks in minutesbeforedeadline precede modeleddeadlineclose. If an observedminute ends exactlyatdeadline, survivingposition exits at that minuteclose afteritsrangechecks; otherwise use firstlater observed opening with openingstopgap priority. Pendingindicatorqueue earlierthandeadline doesnot waitfor modeleddeadlineclose. Periodend neverreads out-of-periodopening: lastobservedinperiodclose fallback explicitlyflagged if exactdeadlineclose unavailable. Ties afterstop/queue use time,thenweek_close,thenperiod_end.",
    "timing": "Openingevent exact observedminuteopening; modeledminuteclose at minuteStart+60; intraminute stop interval[minuteStart,minuteStart+60), not an exacttick. Indicator exits use completedH4information only.",
    "max_holding_h4_slots": 30
  },
  "pip_size": 0.0001,
  "costs": {
    "baseline": {
      "spread_pips": 1.0,
      "slippage_pips_per_leg": 0.1,
      "commission_usd_per_100000_eur_per_leg": 3.5,
      "carry_pips_per_rollover_unit": 0.2
    },
    "higher_cost": {
      "spread_pips": 2.0,
      "slippage_pips_per_leg": 0.2,
      "commission_usd_per_100000_eur_per_leg": 7.0,
      "carry_pips_per_rollover_unit": 0.4
    },
    "zero_cost": {
      "spread_pips": 0,
      "slippage_pips_per_leg": 0,
      "commission_usd_per_100000_eur_per_leg": 0,
      "carry_pips_per_rollover_unit": 0
    },
    "scope": "Fixed research scenarios, not measured historical or current broker spreads/fees. AskOHLC=Bid+constantspread; actualAsk unobserved. Fullrerunrebuildfills,stops,quantities,calendar,cash.",
    "financing": "Bothdirectionsresearchdebit atMonday–Friday17:00 America/New_York: Wednesday3units, otherweekdays1; noholidaycalendar or credit. Entrytime<cutoff and position stillopenaftercutoff. Exactopen/closeexit atcutoff excludesit; intraminuteexitwhoseintervalstart=cutoff includesit. Entryatcutoff excludesit. Accrue in equity and deductin netPnL."
  },
  "variants": [
    "primary",
    "no_zero",
    "zero_cost",
    "higher_cost"
  ],
  "runs": [
    "primary_full",
    "primary_early",
    "primary_later",
    "no_zero_full",
    "no_zero_early",
    "no_zero_later",
    "zero_cost_full",
    "higher_cost_full"
  ],
  "equity": "At each observedH4scheduledcutoff, settle actualexits beforecutoff or atcutoff ifmodeledclose. An openingexit exactlyatcutoff remainsheld in precedingclosemark. Ifopen: V=preentryCash+direction*q*(liquidationFill-entryFill)-2*q*commissionUSDperEUR-q*carryUSDperEURPerUnit*accruedRolloverUnits; liquidationFill=BidClose-slip long or BidClose+spread+slip short. If flat, use realizedcash. Initial10000isopeningpeak. Annualreturns chainyearendmarks anduse bucketopeningyear. H4sampling is not continuous drawdown.",
  "exposure": "Count observedH4buckets with any positioninterval overlap; exactopeningexit doesnot occupy itsfollowingbucket, intraminuteexitdoes. Denominator observedbuckets only; not exactwallclockexposure. Holding H4equivalents are elapsedcalendartime, within1mbarrier haslower/upperbounds.",
  "quality": "Keepallgaps. Separate modelSunday17-toFriday17NYinsessionunobservedminutes fromoutsideweeklysessions withoutclaimingfeedfailurevsnoupdates/holidays. Flagtradescrossingunobservedinsessionminutes and partialsignal/exitbuckets. Ex-post exclusion atoriginalquantities is ledgerdiagnostic only, not realtimefilter or rebuiltretrun.",
  "gallery": "First completedprimaryearlytrade; first completedprimarylatertrade; then firstlatertrade with strictlyoppositenetPnLsign (zeronotopposite), otherwise nextlatertrade, otherwiseexplicitunavailable. Outcomeconditionedthirdexample is educational,notrepresentativesample; examples alreadybelongtoaccounttotals. H4pricecharts sourceBid; forshort markersdistinguishmodeledAskexitreference from Bidcandles.",
  "reference": "USDcash10000withzeroassumedinterest; do not rankleveraged/short FX against buy-and-holdasriskmatched.",
  "verification": {
    "independent_decimal_precision": 40,
    "money_absolute_tolerance": 1e-06,
    "price_indicator_tolerance": 1e-08,
    "quantity_eur_tolerance": 1e-07,
    "metrics_tolerance": 1e-08,
    "decisions": "Exact counts,times,sides,eventkinds,qualityflags,entrycrosses. No epsilon in thresholds."
  },
  "sources": [
    "https://www.tradingview.com/support/solutions/43000502331-trix/",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  ]
}
