stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

'Load Empty4 price history' application
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=6103
Page 1 of 2
Author:  tomele [ Fri Oct 22, 2021 11:50 am ]
Post subject:  'Load Empty4 price history' application

Hi @all.

I found an invaluable piece of smart coding by @hanover at FF. It is the best solution yet for loading the complete price history into your Empty4 terminal. I have modified the code a bit to suit my needs (mainly added an input for symbol prefixes). You can find the original thread by doing a search for "Load Empty4 price history application" at FF. All merits belong to @hanover.

I simply quote @hanover's instructions:
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 Empty4, open a blank chart, and then press Ctrl-J" message appears. Go to the Empty4 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 Empty4 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
Have fun.

.
Author:  bogiahtc [ Fri Oct 22, 2021 12:40 pm ]
Post subject:  'Load Empty4 price history' application

thank Thomas
:!!: :!!: :!!:
Author:  Wavegarrick [ Fri Oct 22, 2021 3:44 pm ]
Post subject:  'Load Empty4 price history' application

This is an excellent find, Thomas. Was coded 6 years ago by Hanover and somehow slipped under the radar.
Thanks for the additions :cheer:
Cheers,
Leon
Author:  Barcode [ Sat Oct 23, 2021 2:52 am ]
Post subject:  'Load Empty4 price history' application

Can this be done over the weekend or must we wait for trading hours?
Author:  tomele [ Sat Oct 23, 2021 10:52 am ]
Post subject:  'Load Empty4 price history' application

You can do it whenever you want.
Author:  Barcode [ Sat Oct 23, 2021 11:02 am ]
Post subject:  'Load Empty4 price history' application

Thanks Thomas :hi:
Author:  c1borg [ Sun Oct 24, 2021 7:36 am ]
Post subject:  'Load Empty4 price history' application

Awesome find maybe an addition to TDesk?
Author:  tomele [ Sun Oct 24, 2021 9:45 am ]
Post subject:  'Load Empty4 price history' application

It isn't my code and good as it is. But I will probably code my own version in pure MQL.
Author:  billv [ Mon Oct 25, 2021 11:16 pm ]
Post subject:  'Load Empty4 price history' application

Hey guys, you should be aware that this exe interferes with your browsers so it is not very intelligent.
I had my emails open in yahoo mail and it started scrolling through them and opening pages
I don't know what its doing but it deleted 1 email too
Maybe it looks for emails which contain the name of the currency pair which is updating
and when its done updating it deletes the email, or could it also be doing something else?

When I was typing this forum message, the app entered the following text into my message window and it would have kept going if I didn't stop it. So to be safe my suggestion would be to close all your browsers and not essential software before you update your Empty4 history....

CADJPY,D1
CADJPY,H1
CADJPY,M15
Author:  tomele [ Mon Oct 25, 2021 11:41 pm ]
Post subject:  'Load Empty4 price history' application

RTFM
All times are UTC Page 1 of 2