Explore the latest free tools from the MQL5 community. Here's a new indicator, expert advisor, or script for MetaTrader.
Backtest Data Preflight shows what bar history your MetaTrader 4 terminal can read for a symbol, timeframe and date range. Check the report before starting a backtest if you want to see whether the broker returned bars near the dates you asked for.
Run a check
- Compile the script in MetaEditor and drag it from Navigator onto a chart.
- Use the chart symbol and timeframe, or pick a timeframe and enter another symbol from Market Watch.
- Set From and To in broker server time. The check includes From and excludes To. Leave both at zero for the last 30 days.
- Read the report in the Experts tab.
Read the report
- The bar count and first and last opens show what the terminal returned. The edge offsets show how far those opens are from the requested dates.
- A gap is a pair of opens farther apart than the selected timeframe. Check the dates against normal trading hours. Weekends and holidays can produce gaps. Monthly bars show the observed dates without a gap count.
- If the first bar is far after From, open the History Center (F2), download the history for the symbol and run the check again. Bars the terminal never received are not in the test either.
Try it on an hourly currency chart over a weekend. The report shows the interval between Friday's last open and the next one. Use the Strategy Tester's Report and Journal tabs to check what the test actually ran on.

Grid trading done right – try the robust Grid Expert Advisor for controlled risk. Details here.
Level up your trading with professional RobotFX expert advisors and indicators. Visit robotfx.org for proven MT4/MT5 tools.
80268