'Load MT4 price history' application
One of the issues I had setting up the Recent Strength indicator was the fact that it took several minutes for the indy to download the historical data (28 pairs x 9 timeframes = 252 different charts) from the br0ker's server, which is needed for it to calculate and plot the lines. Admittedly it was only a one-time setup requirement, but nonetheless a nuisance. The attached app, which is a compiled autohotkey script, automates this process by playing back the keystrokes needed to perform a 'brute force' download of the history data, eliminating the need to type them manually. It still takes several minutes, but at least you can get out for a quick round of golf (30 minutes for 18 holes?......) while your computer does the job. This app might also be useful for any indicator(s) that likewise need historical data to be pre-loaded.
You can install the .exe file in the attached zip anywhere (your desktop is fine). Run it, then type in the symbol IDs you want to process, separated by commas. If your br0ker uses a suffix, typing it (e.g. m) into Symbol suffix field is a lot quicker than having to type the same suffix after each symbol ID (EURUSDm, GBPUSDm, USDJPYm, etc). The delay fields allow the computer some time to catch up if the keystrokes are getting played back too quickly. Hence you may want to run the process for just a couple of symbols to begin with, as a test.
Click the OK button to begin, and the "Now go to MT4, open a blank chart, and then press Ctrl-J" message appears. Go to the MT4 window and open a new blank chart (too many indicators will slow the process down, as the macro loads each chart). Click anywhere in the body of the chart, and then hold down the Ctrl key and press J. Don't move the computer away from the MT4 window while the process is running, or the keystrokes will be played back into the wrong window, causing unpredictable results. Instead, go out and treat yourself to that round of golf. If you use the default settings, then allow around 30-40 minutes for the process to complete; but if you choose less symbols and/or timeframes, then it will take proportionally less time. When the job is finished, the "Click OK to end" message box appears.
The .ahk file in the zip is the source code (no need to install it), just in case any programmers are interested.
As always, download and use at your own risk.
David
______________________________________________
Hi Al, many thanks for all of your hard work, I hope that people find the script useful. Best wishes, David
One of the issues I had setting up the Recent Strength indicator was the fact that it took several minutes for the indy to download the historical data (28 pairs x 9 timeframes = 252 different charts) from the br0ker's server, which is needed for it to calculate and plot the lines. Admittedly it was only a one-time setup requirement, but nonetheless a nuisance. The attached app, which is a compiled autohotkey script, automates this process by playing back the keystrokes needed to perform a 'brute force' download of the history data, eliminating the need to type them manually. It still takes several minutes, but at least you can get out for a quick round of golf (30 minutes for 18 holes?......) while your computer does the job. This app might also be useful for any indicator(s) that likewise need historical data to be pre-loaded.
You can install the .exe file in the attached zip anywhere (your desktop is fine). Run it, then type in the symbol IDs you want to process, separated by commas. If your br0ker uses a suffix, typing it (e.g. m) into Symbol suffix field is a lot quicker than having to type the same suffix after each symbol ID (EURUSDm, GBPUSDm, USDJPYm, etc). The delay fields allow the computer some time to catch up if the keystrokes are getting played back too quickly. Hence you may want to run the process for just a couple of symbols to begin with, as a test.
Click the OK button to begin, and the "Now go to MT4, open a blank chart, and then press Ctrl-J" message appears. Go to the MT4 window and open a new blank chart (too many indicators will slow the process down, as the macro loads each chart). Click anywhere in the body of the chart, and then hold down the Ctrl key and press J. Don't move the computer away from the MT4 window while the process is running, or the keystrokes will be played back into the wrong window, causing unpredictable results. Instead, go out and treat yourself to that round of golf. If you use the default settings, then allow around 30-40 minutes for the process to complete; but if you choose less symbols and/or timeframes, then it will take proportionally less time. When the job is finished, the "Click OK to end" message box appears.
The .ahk file in the zip is the source code (no need to install it), just in case any programmers are interested.
As always, download and use at your own risk.
David
______________________________________________
DislikedTo remove this dependency and make more consistent, I added a parameter and code to allow the inter page delay to be configurable (with reasonable defaults). Seems to work better now...Ignored
Attached File(s)
Load MT4 price history.zip
352 KB
|
4,004 downloads
|
Uploaded Dec 3, 2017 6:00pm