Diebold-Mariano Forecast Gate - companion files
===============================================

mirror.py  Independent Python implementation of every statistic in
           DieboldMarianoCore.mqh (DM, HLN, Clark-West, kernels, forecasters).
refs.py    Rebuilds the reference values hard-coded in DMRunSelfTest().
           Requires numpy and scipy:  python refs.py
gate_replay.py
           Replays the EA's rolling gate from its per-bar CSVs, with the
           guarded and Newey-West variance estimators, a small-sample
           Clark-West variant and HLN for AR. Usage:
           python gate_replay.py <folder with DM_*_GATE_AUTO.csv>

Log files written by DMForecastGate_EA.mq5 do NOT go in this folder.
They go to the terminal's shared Common Data Folder, so every Strategy
Tester agent writes to the same place:

  %APPDATA%\MetaQuotes\Terminal\Common\Files\DieboldMariano\
      DM_<symbol>_<tf>_<GATE|NOGATE>_<model>.csv   one row per closed bar
      DM_Summary.csv                               one row per test run

Per-bar files are recreated on each run. DM_Summary.csv is appended to,
so delete it before starting a fresh test matrix.
