Download MetaTrader 5

Scripts: downloadhistory.mq5

To add comments, please log in or register
Automated-Trading
Admin
101249
Automated-Trading  

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.

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

Author: Aleksey

downloadhistory script demo

hatlle
68
hatlle  

When I try to compile this script it gives an error on line 102:

'SERIES_SYNCRONIZED' - undeclared identifier    downloadhistory.mq5    (line 102, column 46)

It appears that what should be "SERIES_SYNCHRONIZED" is spelled as "SERIES_SYNCRONISED" instead (with the "H" missing).

If you type the "H" in correctly then it compiles properly!

phi nuts
2184
phi nuts  
hatlle:

When I try to compile this script it gives an error on line 102:

It appears that what should be "SERIES_SYNCHRONIZED" is spelled as "SERIES_SYNCRONISED" instead (with the "H" missing).

If you type the "H" in correctly then it compiles properly!

You should also notice that this code was published in Feb 28th 2011. At that time, of course MT5 was a different build. In Sep 6th 2012, on MT build 695 the err was spotted and corrected. See it here point 7 (https://www.mql5.com/en/forum/53/page13#comment_307478). Unfortunally, the bug in this code remain ... as a remainder ;D
tao zemin.
402
tao zemin.  

A very usefull tool for downloading data.

just to make a confirmation. I drag the script to the current chart. but can only see a message flashed in a very short time.I can only move the chart back to 2012.10.2. This happened for all symbols. Does it mean the trading server will only provide history from 202.10.2? thank you.

To add comments, please log in or register