Expert Advisors • Indicators • Scripts • Libraries

MQL.RobotFX.org is the biggest collection of MetaTrader expert advisors (MT5 & MT4), indicators, scripts and libraries that can be used to improve trading results, minimize risks or simply automate trading tasks

MetaTrader 5 Script | downloadhistory.mq5

The script downloads historical data (for the current symbol), available at trade server.

The download progress is plotted using the CProgressBar class, proposed in The Price Histogram (Market Profile) and its implementation in MQL5 article.

MetaTrader Experts, Indicators, Scripts and Libraries

In "Experts" tab of Toolbox window it prints the first date of the server history.

MetaTrader Experts, Indicators, Scripts and Libraries

If error it prints error code (see CheckLoadHistory in Organizing Data Access)


302

Best MetaTrader Indicators + Profitable Expert Advisors