{
  "id": "eurusd-vortex14-h4-ema200-v1",
  "frozen_on": "2026-11-13",
  "frozen_before": "Before calculating the Vortex indicators, signals or account outcomes for this new study. EURUSD source history has already been used in unrelated research; all periods are retrospective, not prospectively unseen.",
  "source_plan_library_file_id": "libfile_fde3_f-6b707844778081918fd3ae33a1c8af65_4aaf69fd96c4819197b87d875abd2c30",
  "question": "Do VI+/VI- crossings with a directional EMA200 price gate change net historical outcomes compared with the identical crosses without EMA and a prespecified price/EMA200 crossover?",
  "market": "EUR/USD, HistData Generic ASCII M1 Bid OHLC; hypothetical USD-denominated FX contract account, not physical EUR holdings, not a broker reconstruction and not converted into USD.",
  "source": {
    "name": "HistData Generic ASCII M1",
    "specification": "https://www.histdata.com/f-a-q/data-files-detailed-specification/",
    "source_timezone": "Fixed EST UTC-05:00 without DST; convert to UTC by adding5h.",
    "raw_years": [
      2019,
      2020,
      2021,
      2022,
      2023,
      2024,
      2025
    ],
    "raw_fields": "semicolon YYYYMMDD HHMMSS;BidOpen;BidHigh;BidLow;BidClose;volume_placeholder; prices USD per EUR",
    "volume": "Source has no meaningful consolidated trading volume; do not treat its placeholder as measured volume.",
    "integrity": "Retain original ZIPs privately, ZIP CRC, computedSHA256, exactCSV identity and acquisition manifest; no provider-published checksum or redistribution license is claimed.",
    "publication": "Publish original analytics and selected illustrative/resampled observations with source attribution; do not bundle the full original M1 ZIP database. Reproducibility package includes original code, protocol, acquisition instructions and source hashes; raw archives must be obtained separately from the provider.",
    "normalization": "Verify7annualZIPs2019–2025 and CSV identity/CRC; retain originalbytes and computed SHA256. Sort by fixedEST+5h UTC. At repeatedtimestamps retain one row only when the complete source row bytes are identical; preserve every repetition in the audit. Conflicting repetitions fail, with no discretionary quote selection. Reject invalid OHLC/precision. No source DST reinterpretation."
  },
  "warmup_start_utc": "2019-06-01T00:00:00Z",
  "bar_seconds": 14400,
  "execution_seconds": 60,
  "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"
    ]
  },
  "retrospective": true,
  "price_precision": "Parse source prices exactly to integer millionths of USD/EUR, rejecting nonzero finer precision. VM and TR differences and rolling sums use integers. EMA/ATR use floating arithmetic after exact source differences.",
  "aggregation": "UTC H4 buckets at00,04,08,12,16,20. Aggregate all observed M1 Bid rows within a bucket, retaining first/last source times and row count. Retain partial session/holiday buckets, flag sparse coverage; never invent flat minutes/candles. Bucket ts is its UTC anchor, not a claim a quote existed at that anchor. H4 values become available only at anchor+14400.",
  "atr_length": 14,
  "atr_seed": "TRfirstH-L;thenmax(H-L,abs(H-prevObservedClose),abs(L-prevObservedClose));seed mean first14observedTR atindex13;thenWilder(13prior+current)/14. SignalATR must be positive.",
  "crossing": "Require two H4 bucket anchors exactly14400secondsapart. Bull: previous VM+14sum<=VM-14sum and current VM+14sum>VM-14sum; bear reverses inequalities. Compare exact integer numerators with common positive TR14sum; no rounding/epsilon. Both Vortex windows must be defined. Windows use observed H4 candles across gaps, but a crossover cannot bridge absent H4 buckets.",
  "primary_signal": "Flat at completed H4 cutoff: bullish Vortex14 cross AND currentClose>EMA200 for long; bearish cross AND currentClose<EMA200 for short. All required Vortex/EMA/ATR inputs defined, ATR positive. No VI>1 threshold, EMA slope or waiting for later confirmation.",
  "entry": "Immediate next scheduled H4 opening (the signal cutoff), requiring an actual source M1 row exactly at that timestamp. Missing opening or out-of-period entry cancels; no deferred entry. Long buys modeledAskOpen+slippage; short sells BidOpen-slippage.",
  "fresh_signal": "No same-opening re-entry after an old position exits at that opening. A position exited before the decision cutoff, including within the preceding minute or exactly at its completed close, may use a fresh H4 signal at that cutoff. A within-minute exit anchored at the cutoff is not yet flat at the opening.",
  "account": {
    "initial_cash": 10000,
    "currency": "USD",
    "one_position": true,
    "long_and_short": true,
    "risk_fraction": 0.01,
    "maximum_notional_to_equity": 1,
    "quantity": "qEUR=min(.01*preentryEquityUSD/Lunit,preentryEquityUSD/(entryFillUSDperEUR+commissionUSDperEUR)); fractionalEUR allowed;1xnotional-to-equitycap. Historical minimumlot/margincloseout not reconstructed.",
    "cash_bookkeeping": "Contract EURnotional is collateral/exposure, not cash spent buyingEUR. Balance/equity and allcommissions/financing/P&L areUSD. Debit entrycommission; mark direction*qEUR*(liquidationBidOrModeledAsk-entryFill)-accruedfinancing. At exit credit directionalpricePnL minus exitcommission andfinancing. No USD conversion or third-pair return is used.",
    "Lunit": "Dprice+slippagePrice+2*commissionUSDperEUR, excluding unknown future financing; financing and gaps can exceed planned1%risk.",
    "net_pnl": "direction*qEUR*(exitFill-entryFill)-2*qEUR*commissionUSDperEUR-qEUR*carryUSDperEURPerUnit*rolloverUnits",
    "net_r": "netPnLUSD/(qEUR*Lunit)"
  },
  "exits": {
    "stop_atr_multiple": 2,
    "target_price_stop_multiple": 2,
    "max_holding_h4_slots": 30,
    "levels": "Dprice=2*signalATR. LongSL=entry-Dprice,T=entry+2Dprice; shortSL=entry+Dprice,T=entry-2Dprice. Require positive finite levels, fixed thereafter. No Vortex/EMA or opposite-cross exit.",
    "quotes": "Long exits trigger on sourceBid; short exits on modeledAsk=Bid+scenarioSpread. Opening checks before minute high/low. Opening beyond stop/target uses actual observed opening reference, with adverse exit slippage.",
    "minute_order": "Scan all observed M1 rows from entry. If both barriers touch inside one minute while its opening is between them, ordering is unresolved: stop-first primary and target-first bound. No inferred tick path. Missing earlier minutes are flagged, not filled.",
    "deadline": "Earliest of entry+30*14400, nextFriday17:00 America/New_York, orperiodEnd. Barrier exits before timed liquidation. Time and weekly close use the source minute closing at the exact deadline when present (modeled closing execution); otherwise first later available opening, checking opening barriers before timed exit and before that later minute range. Never use quotes beyond the evaluated period; period-end terminal fallback uses last observed in-period close and explicitly records its source time.",
    "tie_priority": "After barriers, time deadline first, thenweek_close, thenperiod_end if cutoffs tie. No indicator-driven exit.",
    "event_precision": "Intraminute barrier exit is an interval[minuteStart,minuteStart+60), not a tick. Opening and modeled completed-minute close events remain distinct."
  },
  "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.3
    },
    "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.6
    },
    "zero_cost": {
      "spread_pips": 0,
      "slippage_pips_per_leg": 0,
      "commission_usd_per_100000_eur_per_leg": 0,
      "carry_pips_per_rollover_unit": 0
    },
    "spread_scope": "One pip=.0001USD/EUR. AskOHLC=sourceBidOHLC+constant scenario spread; not observed historical Ask or broker spreads. CommissionUSD per100000EUR per leg; adverse slippage independent.",
    "financing": "Explicit research debit for both directions, not actual historical swaps or interest credits: Monday-Friday17:00 America/New_York, Wednesday3units and other weekdays1. No weekend cutoffs or holiday value-date calendar. Charge when entryTime<cutoff and position remains open aftercutoff. Exact open/close exit atcutoff does not incur thatcutoff; an intraminute exit whose interval starts atcutoff does. Entry atcutoff doesnot pay the preceding interval. Financing is accrued in H4 equity and paid in nettradePnL."
  },
  "variants": [
    "primary",
    "no_ema",
    "ema_only",
    "zero_cost",
    "higher_cost"
  ],
  "variant_rules": {
    "no_ema": "Remove only the directional price/EMA200 gate from identical Vortex crosses; ATR/clock/exits/sizing/costs unchanged.",
    "ema_only": "Use adjacent price/EMA200 crosses instead ofVortex:previousClose<=previousEMA,currentClose>currentEMA forlong;inverseforshort;noVortexcondition. KeepATR/execution/costs/exits/sizing. Separate one-position calendar. This changes the entrytrigger and cadence, so it doesnot isolate causal addedinformation at matchedentrytimes,lag orfrequency.",
    "zero_cost": "Primarysignal with all4costassumptionszero; resimulatefills,levels,quantity andtradecalendar.",
    "higher_cost": "Primarysignal with all4costassumptionsdoubled; resimulatefills,levels,quantity andtradecalendar."
  },
  "passive_reference": "Uninvested USDcash stays10000 with zero interest; not a risk-matched currency buy-and-hold. No third-pair conversion.",
  "diagnostics": {
    "fixed_quantity_costs": "At primary original dates, source Bid entry/exit references, direction and originalqEUR, reprice Bid/Ask and slippage then recost commissions/carry forzero/base/higher costs; do not shift triggers, levels, dates or quantities. Report ledgerPnL, not account-return percentage. All P&L is USD, with scenario commissionUSDperEUR andcarryUSDperEUR.",
    "gap_exclusion": "Remove flagged gap-affected trades at original quantities, report retained ledgerPnL, not resimulated return or an avoidable real-time filter.",
    "cross_events": "ForVortex andprice/EMA200 separately,count every adjacent directional cross withpositiveATR regardlessofaccountoccupancy, whose completeddecisioncutoff is in period[start,end). ForVortex recordbefore/afterdirectionalEMA gate, side,undefinedEMA andexact nextM1openingavailability;EMApricecross alreadyselectsdirectionbyprice. Year=decisioncutoffyear. Thesearedependentcandidates,notfundedtrades orknownfalse signals.",
    "rapid_recross_proxy": "Expostdescriptiveonly: oppositecross ofsame trigger (VortexVI+/VI- forVortex;price/EMA200 forEMAonly) within next3scheduledH4slots/12h. Requireall3futurebuckets and requiredindicatorinputs andcutoffs<=periodEnd;otherwisecensor evenifpartialreversalseen. NoEMA gateonoppositeVortexrecross. Reportnumerator,eligible,censored before/afterEMA. Differenttriggers/cadences notcausalisolation,notentrytimeinformation or a futurefilter."
  },
  "equity": "Mark at observed H4 bucket cutoffs using sourceBidClose for long or modeledAskClose forshort, entrycommission and financing accrued through thatcutoff; exitcommission/slippage charged at actual modeled exit only. Include initial1000000USD as opening peak. H4 sampling is not continuous intraminute drawdown. Annual attribution uses native H4 bucket-opening year, evenif cutoff nextyear.",
  "exposure": "Observed H4 bucket occupancy (position held at any time), not exact elapsed time. Holding slots count elapsed scheduled4h intervals, including any quote gaps.",
  "source_gaps": "Retain all source gaps. Separate gaps entirely outside the modelSunday17-to-Friday17 NewYork weekly session from unobserved in-session minutes, without asserting whether missing quotes mean feed failure or no updates. Trades spanning unobserved open-session minutes are flagged.",
  "gallery": "Firstcompletedearlytrade,firstcompletedlatertrade,firstlatertradewithoppositenetPnLsign; otherwise stated fallback. H4Bidcandles+EMA200, dynamicnonnegativeVI+/VI-ratiopane withline1fororientation and separateATR14pricepane. Ssignal,EsourceBidopen,Xliquidationreference (modeledAskforshort). M15exitpanels useBidlong/modeledAskshort and onlycomplete15actualM1groups. No invented candles; entry/exit fills distinguished from source references.",
  "later_trade_sample_warning_below": 30,
  "sources": [
    "https://www.tradingview.com/support/solutions/43000591352-vortex-indicator/",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  ],
  "ema": {
    "length": 200,
    "seed": "SMA of first200observed H4 closes atindex199; thenalpha2/201 over observed bars.",
    "trend_gate": "Long currentClose>currentEMA200;short currentClose<currentEMA200;exactequalityfails. No slope or extra confirmation gate."
  },
  "frozen_at_utc": "2026-11-13T09:57:53.727684+00:00",
  "vortex": {
    "length": 14,
    "movement": "VM+_t=abs(H_t-L_(t-1)); VM-_t=abs(L_t-H_(t-1)), using the previous observed H4 candle.",
    "true_range": "TR_t=max(H_t-L_t,abs(H_t-C_(t-1)),abs(L_t-C_(t-1))). Initial ATR TR is H-L, but the initial candle has no prior candle and cannot supply a Vortex movement.",
    "formula": "VI+_t=sum(VM+ over last14 observed movements)/sum(TR over same14); VI-_t=sum(VM-)/same sum(TR). First possible value requires15 observed H4 candles. Positive denominator required. No Wilder smoothing in Vortex numerator or denominator. ATR14 is a separate Wilder calculation.",
    "comparison": "Since both ratios have the same positive denominator, compare exact integer movement sums for trading signals, including the previous window; displayed ratios can be rounded without affecting signals.",
    "interpretation": "Relative cross-candle price movement, not the age of an extremum, volume, a probability, or a bounded0–100 oscillator. VI values can exceed1; the chart has a dynamic nonnegative ratio scale. Line1 is orientation, not an entry gate."
  }
}
