Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Analyzing History - MetaTrader 4 Expert | MT4 EA Download - MetaTrader 4 Resources

author EAcpu | 5 reads | 0 comments |

Analyze History - expert for MetaTrader 4

Analyze History - expert for MetaTrader 4

Do you want to know if your history files are complete or have gaps (i.e. data loss for certain time periods)?

This EA reports all gaps in the history file for the selected symbol and time range.

Launch the EA in the Strategy Tester, uncheck the "Use Dates" checkbox and model "Only Opening Prices" for the symbol and timeframe you want to check.

Analyze History - expert for MetaTrader 4

The EA will print out all historical gaps in the log.

Analyze History - expert for MetaTrader 4

Gaps on weekends are ignored (assuming the broker closes on Friday and reopens on Sunday), but possible gaps during holiday periods (such as Christmas) are reported.

The only input parameter Minimum Gap Bar Chart can be used to filter out gaps shorter than a certain number of bars, for example ignoring tiny gaps due to lack of trading by brokers during periods of low liquidity.


Attachment download

📎 analyzehistory.mq4 (2.27 KB)

Source: MQL5 #11643

Verification code Refresh