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

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

author EAcpu | 5 reads | 0 comments |

CDownLoadHistory class - library for MetaTrader 5

CDownLoadHistory class - library for MetaTrader 5

CDownLoadHistory class - library for MetaTrader 5

CDownLoadHistory class - library for MetaTrader 5

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":

CDownLoadHistory class - library for MetaTrader 5

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

CDownLoadHistory class - library for MetaTrader 5

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

CDownLoadHistory class - library for MetaTrader 5

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

CDownLoadHistory class - library for MetaTrader 5

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

Verification code Refresh