CDownLoadHistory Class - Library for MetaTrader 5 - MT4/MT5 Resources




The CDownLoadHistory class provides two methods for downloading historical data in "visual" and "silent" modes.
An example of using this mode is downloadhistoryvisualmode.mq5.
The "History Download Mode" input parameter can be one of the following two modes: "Current Trading Symbol" or "All Trading Symbols in the Market Observation Window":

For the "All symbols in the market watch window" mode, it will show two progress bars:

For the case of selecting the "Current symbol" mode, a single progress bar will be displayed:

It prints the results in the Expert tab of the Toolbox window:

Download results are available as return codes. Silent mode is useful in programs that don't require visualization. See the example in the downloadhistorysilentmode.mq5 script.
It uses the CProgressBar class, described in Price Histogram (Market Profile) and its implementation in MQL5 .
Attachment download
📎 classprogressbar.mqh (3.75 KB)
📎 cdownloadhistory.mqh (10.54 KB)
📎 downloadhistoryvisualmode.mq5 (1.36 KB)
📎 downloadhistorysilentmode.mq5 (1.17 KB)
Source: MQL5 #304
💡 Featured Recommendations
✍️ Latest by the author
- •
- •
- •
- •
- •
- •
📌 Popular topics
- •
- •
- •
- •
- •
- •
- •
- •
🔗 You May Be Interested In
- •
- •
- •
- •
- •
- •