MetaTrader 5 β€£ MT5 Scripts β€£ downloadhistory.mq5 – script MetaTrader 5

downloadhistory.mq5 – script MetaTrader 5

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.

downloadhistory script demo

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

downloadhistory script log

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

πŸ“ˆ ROBOTFX MetaTrader Expert Advisors and Indicators to maximize profits and minimize the risks
Alternative:   MinMax_MA - indicator MetaTrader 5