OHLC Check
This EA is a utility tool that checks and validates OHLC (Open, High, Low, Close) data integrity in MetaTrader 5. It compares historical bar data from different sources or timeframes to detect discrepancies, missing bars, or data corruption issues in the price feed.
Open the interactive view (equity curve, symbol switch)Key facts
Backtest results (H1, about 1 year)
Not backtested yet — this EA could not be converted automatically.
Strategy analysis
This EA is not a trading strategy but rather a data validation utility tool. Its core function is to read and compare OHLC data bar by bar, checking consistency between data sources. Entry and exit conditions are not applicable since it does not execute any trading operations. Position sizing and money management are likewise not applicable. Its main logic involves iterating through historical bars within a specified range, comparing price values from different data sources, flagging inconsistent data points, and outputting detection results via logs or charts. The tool may also include timestamp continuity checks to discover missing bar periods.
Strengths
- Helps traders detect anomalies in data sources, avoiding trading decisions based on faulty price data
- Systematically validates integrity of large volumes of historical data, far more efficient than manual checks
- Serves as a debugging and diagnostic tool, effectively isolating data-level causes when backtest results diverge from live performance
Weaknesses
- Only provides data checking functionality with no trading capability, making its feature set quite narrow
- The criteria for judging data discrepancies may not be flexible enough to accommodate all special cases across different data sources
- Lacks a graphical interface for presenting results; relying solely on log output is not intuitive enough
Possible improvements
- Add a graphical panel to visually display the location and magnitude of data discrepancies in chart form
- Add options for automatically repairing or excluding anomalous data, and support exporting validation reports
Risk assessment
Overall risk: Safe
- This tool does not execute any trading operations, so there is no financial risk
- If the data checking logic itself has flaws, it may produce false positives or false negatives, misleading traders' judgment
Evaluation scores
Parameters
| Parameter | Default | Description |
|---|---|---|
CheckPeriod | 1000 | Number of historical bars to check |
Timeframe | PERIOD_CURRENT | Target timeframe for checking |
LogEnabled | true | Enable log output |
AlertOnDiscrepancy | true | Alert on data discrepancy detected |
Similar Unclassified EAs
Backtests are historical simulations and do not guarantee future results. Not financial advice.