Automated Tick Data Validation Before MT5 Strategy Optimization

Hello everyone,

I am currently exploring an automated data validation system for XAUUSD scalping strategies in MetaTrader 5.

The idea is to perform a diagnostic test before starting strategy optimization and generate a report containing:

- Percentage of minutes using real ticks.
- Missing and discarded tick data.
- Historical spread statistics.
- Tick frequency and time gaps.
- Identification of unreliable testing periods.

The objective is to avoid optimizing Expert Advisors using unreliable historical data.

Would you recommend using an MQL5 diagnostic EA, an external log analyzer, or a combination of both?

I would appreciate your technical suggestions and practical experience.