Hermit Lamp Backtest Data Check
- Utilità
- Versione: 1.0
- Attivazioni: 5
A backtest is only as good as the price history behind it. Broker history has gaps, shifted clocks, day bars stored as 1-minute bars and fake spreads, and the Strategy Tester uses it without warning. Backtest Data Check checks it month by month before you test.
WHAT IT CHECKS (M1 bars and ticks, no internet, no DLL)
- Missing data vs closed market: minutes the broker's session table says are open but have no bars. Holidays and short sessions are told apart from real gaps.
- Week clock shifted by 1-2 hours: hour-based rules become unreliable in those weeks.
- A day's whole range stored in one M1 bar: an EA would see future prices.
- Fake spread: one fixed value, or zero, for a whole month.
- Price spikes that jump and come straight back.
- Real ticks: from which month "Every tick based on real ticks" has data, and whether ticks match the bars.
WHAT YOU GET
- A label for every month: GOOD, CAUTION, AVOID or NO DATA, with one line per problem found.
- The longest run of GOOD months: the period to backtest on.
- Scan the chart symbol, your own list or all Market Watch symbols.
- HTML report (month map, reasons on hover) and a CSV with every number.
- Finished months are cached: the next scan checks only new months.
- Strategy Tester demo: checks the history the Tester gives (about one year before the start date) and tells you whether the test runs on real ticks or on ticks built from 1-minute bars.
ACCURACY OF THE WEEK CLOCK CHECK
In our tests on FX and gold with 2+ years scanned, it found about 9 in 10 weeks with a shifted clock and flagged about 1 normal week in 100 (about 1 month in 50). Shorter scans find fewer (about 8 in 10 with 6 months). If about a third or more of the scanned weeks are shifted the same way, the result can be wrong in both directions. Stock indices were checked less than FX and gold. Not used on symbols that trade at weekends.
LIMITS
- It finds data that breaks the expected pattern. It does not know the correct prices and cannot repair your broker's data.
- GOOD means no data problem was found, not that a backtest is reliable.
- Holiday hours or futures contract rolls can show CAUTION although the data is right. The reason line tells you what was seen, so you can decide.
- MetaTrader lets programs read M1 bars only up to "Max bars in chart". For years of history set Tools > Options > Charts > Max bars in chart = Unlimited and restart MetaTrader. The panel tells you when this limit cut the scan.
- In the Strategy Tester, "Open prices only" has no 1-minute bars, so the check needs "Every tick" or "1 minute OHLC".
QUESTIONS AND BUGS
Write in the Comments tab or send me a message on MQL5. I read every comment and fix reported bugs.
If the tool is useful to you, a short review helps other traders find it.

