{
  "account": {
    "initial_cash": 10000,
    "net_r": "Realized directionalpricePnL minus bothcommissions and realizedfinancing, divided by entryq*Lunit. Nominal1%budget is not guaranteed maximum loss.",
    "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.",
    "risk_fraction": 0.01
  },
  "costs": {
    "baseline": {
      "carry_pips_per_rollover_unit": 0.2,
      "commission_usd_per_100000_eur_per_leg": 3.5,
      "slippage_pips_per_leg": 0.1,
      "spread_pips": 1.0
    },
    "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.",
    "higher_cost": {
      "carry_pips_per_rollover_unit": 0.4,
      "commission_usd_per_100000_eur_per_leg": 7.0,
      "slippage_pips_per_leg": 0.2,
      "spread_pips": 2.0
    },
    "scope": "Fixed research scenarios, not measured historical or current broker spreads/fees. AskOHLC=Bid+constantspread; actualAsk unobserved. Fullrerunrebuildfills,stops,quantities,calendar,cash.",
    "zero_cost": {
      "carry_pips_per_rollover_unit": 0,
      "commission_usd_per_100000_eur_per_leg": 0,
      "slippage_pips_per_leg": 0,
      "spread_pips": 0
    }
  },
  "entry": {
    "cross": "When flat, long if previousRVI<=previousS AND currentRVI>currentS; short if previousRVI>=previousS AND currentRVI<currentS. Current and immediately previous readings defined, currentATRpositive, at least200 observed bars, previous/current H4 anchors exactly14400 apart. No zero-level gate. Equality only on previous side of crossing.",
    "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.",
    "ema_gate": "Primary also requires current Bid close>EMA200 for long or <EMA200 for short; equality fails. no_ema removes ONLY this price gate. Both require the identical200-observation gate and compute EMA200.",
    "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.",
    "position": "One position only, no pyramiding, reversal or hedging; fractional EURquantity; no historic minimumlot/steps reconstructed."
  },
  "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.",
  "exit": {
    "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.",
    "fixed_stop": "LongSL=entryFill-2ATR; shortSL=entryFill+2ATR, positivefinite. For long requireSL<entryBidOpen; forshort requireSL>modeledAskOpen. No target, trailingstop or stopupdates.",
    "indicator_level": "Valid completedRVI<=S for long or >=S for short queues exit at that completed H4 cutoff. Equality triggers. Pending exits survive missing quotes and execute at first observed M1 opening at/after cutoff, with stop-gap priority. No fresh cross, EMA filter, positive ATR, entry warmup or zero-level condition needed.",
    "max_holding_h4_slots": 30,
    "order": "At each observedminuteopening: openingstopgap first, then pendingindicator exit, then overdue earliestdeadline; onlythen inspect subsequentminuterange forstop. Stopgap uses actualopeningreference. IntraminutestopusesSLreference. No imaginedticktime.",
    "quote_side": "Longexittrigger/sourcequoteBid; shortexittrigger/modelAsk=Bid+scenarioSpread. Exitfill=exitReference-direction*slip.",
    "timing": "Openingevent exact observedminuteopening; modeledminuteclose at minuteStart+60; intraminute stop interval[minuteStart,minuteStart+60), not an exacttick. Indicator exits use completedH4information only."
  },
  "exposure": "Count observedH4buckets with any positioninterval overlap; exactopeningexit doesnot occupy itsfollowingbucket, intraminuteexitdoes. Denominator observedbuckets only; not exactwallclockexposure. Holding H4equivalents are elapsedcalendartime, within1mbarrier haslower/upperbounds.",
  "frozen_at_utc": "2026-11-15T12:18:50.546684+00:00",
  "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.",
  "id": "mpf-eurusd-h4-rvi10-ema200-20261115-v1",
  "indicators": {
    "atr14": "Wilder ATR14: firstTR=H-L, then max(H-L,abs(H-prevObservedClose),abs(L-prevObservedClose)). Seed mean first14 TR at index13; then(13*prior+TR)/14. Decimal40.",
    "components": "Exact source integer prices scaled1e6. u=C-O, d=H-L. U[t]=u[t]+2*u[t-1]+2*u[t-2]+u[t-3]; D[t] analogous for d. Four observed-candle kernel; no invented prehistory. Dividing both weighted components by6 would cancel in the later ratio.",
    "ema200": "Close EMA200: seed arithmetic mean first200 observed closes at index199, then prior+2/201*(C-prior). Decimal40; independent Decimal50. This is a price entry gate, not part of RVI or its signal.",
    "history": "Retain observed H4 bucket state across scheduled gaps/weekends, including partial buckets; no synthetic candles or gap resets. Entry pair crossings require exactly adjacent scheduled H4 anchors. All entry variants require200 observed bars, defined EMA/RVI/current-and-previous signal, and positive ATR14. Exits need only defined current line ordering, not entry warmup, adjacency, EMA or positive ATR.",
    "numeric_decisions": "RVI and S thresholds/crossings are exact Fraction comparisons, no epsilon or rounded display values. EMA price gate uses Decimal40, independent Decimal50; equality C=EMA fails both directions. Stored float display values never decide entry/exit flags. Ledger follows existing binary64 Forex-account framework, independently checked with Decimal50.",
    "rvi10": "RVI[t]=sum(last10 U)/sum(last10 D), exact Fraction. This is a ratio of sums, not a mean of body/range ratios. Rolling windows include current observation. First U/D index3, first RVI index12 (13 observed bars).",
    "signal": "S[t]=(RVI[t]+2*RVI[t-1]+2*RVI[t-2]+RVI[t-3])/6 with four consecutive defined readings in observed-bar order. First S index15 (16 bars), first possible pair crossing index16 (17 bars). No EMA signal smoothing.",
    "undefined": "If rolling denominator is zero, RVI is unavailable. Signal is unavailable unless all four required RVI are defined; no skipping unavailable rows or filling zero. An individual flat candle need not make the rolling denominator zero. With valid OHLC and positive denominator RVI and S lie in[-1,1]."
  },
  "parameters": {
    "atr_period": 14,
    "atr_stop_multiple": 2,
    "common_entry_observations": 200,
    "ema_period": 200,
    "rvi_period": 10,
    "weights_current_to_oldest": [
      1,
      2,
      2,
      1
    ]
  },
  "periods": {
    "early": [
      "2020-01-01T00:00:00Z",
      "2023-01-01T00:00:00Z"
    ],
    "full": [
      "2020-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ],
    "later": [
      "2023-01-01T00:00:00Z",
      "2026-01-01T00:00:00Z"
    ]
  },
  "pip_size": 0.0001,
  "quality": "Keepallgaps. Separate modelSunday17-toFriday17NYinsessionunobservedminutes fromoutsideweeklysessions withoutclaimingfeedfailurevsnoupdates/holidays. Flagtradescrossingunobservedinsessionminutes and partialsignal/exitbuckets. Ex-post exclusion atoriginalquantities is ledgerdiagnostic only, not realtimefilter or rebuiltretrun.",
  "reference": "USDcash10000withzeroassumedinterest; do not rankleveraged/short FX against buy-and-holdasriskmatched.",
  "research_scope": "Retrospective fixed-rule strategy demonstration on familiar archived EURUSD history. Preset Relative Vigor Index10 plus EMA200 with one control removing only the price/EMA entry gate. No search over lengths, thresholds, stops or periods; no zero-level gate. Publish all fixed scenarios regardless of result. Restarted periods are not unseen prospective tests.",
  "runs": [
    "primary_full",
    "primary_early",
    "primary_later",
    "no_ema_full",
    "no_ema_early",
    "no_ema_later",
    "zero_cost_full",
    "higher_cost_full"
  ],
  "site_baseline": {
    "sitemap_urls": 2544,
    "strategies_per_language": 68,
    "version": 358
  },
  "source": {
    "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.",
    "manifest": "data/eurusd-vortex/manifest.json",
    "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.",
    "provider": "HistData Generic ASCII M1 Bid",
    "raw_directory": "data/eurusd-vortex/raw",
    "source_authenticity": "Pinned original bytes from retained downloads, not newly fetched or provider-published checksums.",
    "timestamp": "Fixed EST UTC-05 with no DST; add18000seconds forUTC. The separate NewYork trading-week/financing calendar observes DST."
  },
  "source_manifest": [
    {
      "bytes": 3156192,
      "csv": "DAT_ASCII_EURUSD_M1_2019.csv",
      "file": "EURUSD-M1-2019.zip",
      "sha256": "221fa4e0db549f48719273979ea4b1a2b0877f45f1147a8416ff8bbd055f5491"
    },
    {
      "bytes": 3420002,
      "csv": "DAT_ASCII_EURUSD_M1_2020.csv",
      "file": "EURUSD-M1-2020.zip",
      "sha256": "38efbafce27f0e15df0006cc413cc02a68a18cada4f3b99e9afd42e17dd2ff2c"
    },
    {
      "bytes": 3285118,
      "csv": "DAT_ASCII_EURUSD_M1_2021.csv",
      "file": "EURUSD-M1-2021.zip",
      "sha256": "64af4aa52958685a6889cfa15df400c62dc6ad543cf6ea10a13a0d3a7e01a563"
    },
    {
      "bytes": 3545446,
      "csv": "DAT_ASCII_EURUSD_M1_2022.csv",
      "file": "EURUSD-M1-2022.zip",
      "sha256": "5ed361f3d93107f644834cac06870e830f9dc887d5aa5fde4b90c2accdf773f3"
    },
    {
      "bytes": 2919186,
      "csv": "DAT_ASCII_EURUSD_M1_2023.csv",
      "file": "EURUSD-M1-2023.zip",
      "sha256": "26e41c4bccfd70f2c76ef7f3ffcba0e3b7097231927a41640f4a7c442815f34a"
    },
    {
      "bytes": 3229550,
      "csv": "DAT_ASCII_EURUSD_M1_2024.csv",
      "file": "EURUSD-M1-2024.zip",
      "sha256": "58f074ba6b835eb2fbeaeb6678502a23b26768eefdfa509eb75ff5296bb2904d"
    },
    {
      "bytes": 3441226,
      "csv": "DAT_ASCII_EURUSD_M1_2025.csv",
      "file": "EURUSD-M1-2025.zip",
      "sha256": "b7c23d20b9577588a8b13508d58fedbe487e569b7b8b5dd368bd1d2b61115de0"
    }
  ],
  "sources": [
    "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rvi",
    "https://www.mql5.com/en/code/8035",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  ],
  "status": "frozen before first strategy performance calculation",
  "study": "EUR/USD H4 Relative Vigor Index10 + EMA200",
  "symbol": "EURUSD",
  "timeframe_seconds": 14400,
  "variants": [
    "primary",
    "no_ema",
    "zero_cost",
    "higher_cost"
  ],
  "verification": {
    "decisions": "Exact counts,times,sides,eventkinds,qualityflags,entrycrosses. No epsilon in thresholds.",
    "independent_decimal_precision": 50,
    "metrics_tolerance": 1e-08,
    "money_absolute_tolerance": 1e-06,
    "price_indicator_tolerance": 1e-08,
    "quantity_eur_tolerance": 1e-07
  },
  "warmup_start": "2019-01-01T00:00:00Z"
}
