{
  "study": "Relative Vigor Index10 indicator guide with EUR/USD H4 examples",
  "scope": "Indicator arithmetic and reading examples, no trading-account performance calculation. Known retrospective data. No optimization or outcome-based example selection.",
  "source_evidence": "eurusd-trix-evidence.json",
  "source_sha256": "cd90bc54438d44863c2a0c251578077bea4f1bb346991b68797e236af851ce53",
  "source_manifest": [
    {
      "file": "EURUSD-M1-2019.zip",
      "sha256": "221fa4e0db549f48719273979ea4b1a2b0877f45f1147a8416ff8bbd055f5491",
      "bytes": 3156192,
      "csv": "DAT_ASCII_EURUSD_M1_2019.csv"
    },
    {
      "file": "EURUSD-M1-2020.zip",
      "sha256": "38efbafce27f0e15df0006cc413cc02a68a18cada4f3b99e9afd42e17dd2ff2c",
      "bytes": 3420002,
      "csv": "DAT_ASCII_EURUSD_M1_2020.csv"
    },
    {
      "file": "EURUSD-M1-2021.zip",
      "sha256": "64af4aa52958685a6889cfa15df400c62dc6ad543cf6ea10a13a0d3a7e01a563",
      "bytes": 3285118,
      "csv": "DAT_ASCII_EURUSD_M1_2021.csv"
    },
    {
      "file": "EURUSD-M1-2022.zip",
      "sha256": "5ed361f3d93107f644834cac06870e830f9dc887d5aa5fde4b90c2accdf773f3",
      "bytes": 3545446,
      "csv": "DAT_ASCII_EURUSD_M1_2022.csv"
    },
    {
      "file": "EURUSD-M1-2023.zip",
      "sha256": "26e41c4bccfd70f2c76ef7f3ffcba0e3b7097231927a41640f4a7c442815f34a",
      "bytes": 2919186,
      "csv": "DAT_ASCII_EURUSD_M1_2023.csv"
    },
    {
      "file": "EURUSD-M1-2024.zip",
      "sha256": "58f074ba6b835eb2fbeaeb6678502a23b26768eefdfa509eb75ff5296bb2904d",
      "bytes": 3229550,
      "csv": "DAT_ASCII_EURUSD_M1_2024.csv"
    },
    {
      "file": "EURUSD-M1-2025.zip",
      "sha256": "b7c23d20b9577588a8b13508d58fedbe487e569b7b8b5dd368bd1d2b61115de0",
      "bytes": 3441226,
      "csv": "DAT_ASCII_EURUSD_M1_2025.csv"
    }
  ],
  "symbol": "EURUSD",
  "quote": "Observed HistData Bid OHLC, USD per EUR; not Ask or trade executions.",
  "history": [
    "2019-01-01T00:00:00Z",
    "2026-01-01T00:00:00Z"
  ],
  "source_time": "Original fixed EST UTC-05 no DST, shift+18000seconds. H4 anchors UTC floor(epoch/14400).",
  "bars": "Retain observed H4 buckets including partial ones, no missing bar interpolation. RVI/EMA state counts observed bars across gaps, no reset. First actual M1 opening and last actual M1 close with min/max observed high/low. Retained minute count and endpoints disclosed. Final values available at scheduled H4 end; last observed close is a stale proxy if final minute absent.",
  "parameters": {
    "period": 10,
    "weights_current_to_oldest": [
      1,
      2,
      2,
      1
    ],
    "ema_period": 200
  },
  "formula": "u_i=C_i-O_i;d_i=H_i-L_i;U_i=u_i+2u_prev+2u_prev2+u_prev3;D_i=d_i+2d_prev+2d_prev2+d_prev3;RVI_i=sum_last10_U/sum_last10_D;Signal_i=(RVI_i+2RVI_prev+2RVI_prev2+RVI_prev3)/6. Dividing both U and D by6 before rolling sums does not change RVI. Ratio of sums, not mean of individual ratios.",
  "zero_denominator": "RVI unavailable if its rolling denominator is zero. Signal requires four immediately previous/current defined RVI; do not bridge unavailable readings. It may be defined when an individual candle range iszero but the rolling sum ispositive.",
  "initialization": "First U/D atindex3, firstRVI atindex12 (13bars), firstSignal atindex15 (16bars), firstpossiblepaircross atindex16 (17bars). EMA200 mean of first200observedcloses atindex199 then update weight2/201. No fabricated warmupzeros.",
  "numeric": "U/D integer source prices scaled1e6; RVI and Signal exact fractions; all comparisons exact rational without epsilon. EMA200 Decimal40, independent Decimal50. Price/ratio/EMA comparisons atol1e-10; discrete/null flags exact.",
  "flags": "bullish_pair_cross previousRVI<=previousSignal,currentRVI>currentSignal; bearish inverse with previous>=current<. Current/prior defined and anchors exactly14400apart. main_above_zero strictRVI>0;close_above_ema strictC>EMA200; equality fails either gate. Crossing of mainSignal is different from crossingzero; the standalonezero_cross flag requires previousRVI<=0,currentRVI>0 and adjacentanchors.",
  "examples": {
    "start": "2024-01-01T00:00:00Z",
    "signal_coverage": "current and previous H4 both240minutes,firstminute=anchor,lastminute=anchor+14340. Require currentEMA200 and defined current/priorRVI+Signal; adjacentanchors. Selection uses only information at selected completed interval.",
    "aligned": "First bullish paircross with RVI>0 andclose>EMA200.",
    "blocked": "First distinct bullish paircross withclose<EMA200.",
    "below_zero": "First distinct bullish paircross withRVI<0.",
    "window": "12observedbarsbefore selectedsignal and9after (22bars). Future context is visible retrospective chart context, not an input toselection or computedflag. No entry,exit,stop,fill or return is simulated."
  },
  "teaching": {
    "weights": [
      1,
      2,
      2,
      1
    ],
    "ratios": [
      {
        "U": 1,
        "D": 1
      },
      {
        "U": -1,
        "D": 9
      }
    ],
    "explanation": "Constructed two-component arithmetic in arbitrary units, not full RVI10 historical observations. Ratio of sums0; mean of individual ratios4/9."
  },
  "sources": [
    "https://www.mql5.com/en/code/8035",
    "https://www.metatrader5.com/en/terminal/help/indicators/oscillators/rvi",
    "https://www.histdata.com/f-a-q/data-files-detailed-specification/"
  ]
}
