PureBytes Links
Trading Reference Links
|
Hi all,
I learn a new method of gathering a bunch of historical intraday data
using the new MT4 via DDE. It works wonderfully until I found a
BUG that really skewed my trading platform. I will give the
detail about how to set this up first. The source came from
moneytec by Utek.
1) http://www.moneytec.com/forums/attachment.php?attachmentid=15421 (i use 5min setting instead)
2) http://www.moneytec.com/forums/attachment.php?attachmentid=15422
3) http://www.moneytec.com/forums/attachment.php?attachmentid=15425
Hotkeys:
CTRL+SPACE=IMPORT ASCII
- run AB but make sure connect is RED
- run MT4
- In MT4 call up M1 bars of symbol want to save data for.
Remember if GBPUSD plotting on M1 bar, you can get MT to load as much
as possible by hitting HOME key (remem to disable "AutoScroll") then
ZOOM OUT as far as will go so display shows as many bars as can. Now...
wear your finger out by repeatedly hitting (or just press down...)
either HOME or PgUp keys - this forces MT to download more history so
can plot it and the zoom out means lots of data needed to display next
page so downloads more data for each key press transaction. - Eventually MT will not go backwards/scroll left any more - will stop getting more history data.
- HIT Control-S to save
history -> .csv file. Note that I always use the same name eg:
gbpusd.csv or eurusd.csv, etc. MT4 always opens the folder it last
saved data to, so the previous xxxyyy.csv files are already there. So I
do not have to key anything in... just mouse click here 'n there, makes
life easier.
- So, having got the xxxyyy.csv file with latest M1 data - goto AB focus.
- Call up the M1 chart for symbol pair GBPUSD so that it has focus in AB.
- Now
AB (toolbar) File > Import ASCII... and navigate to the MT4 data
save folder (AB will, like MT4 - remember the last used import folder)
All one needs to do is select the file and hit return key and AB imports the data.
You will see the previously not uptodate chart refresh and hey-presto! all bang uptodate... - Note
that the first time importing - you (I forget, been long time now...)
probably will need to use the AB (toolbar) File > Import Wizard...
to generate an import data expected format syntax file. Just Pick...
the xxxyyy.csv file and you'll then be able to sort yourself out from
there - the Wizard gives enough hints and also HELP file is there too
for making up your own template etc. YMD, TIME, OPEN, HIGH, LOW,
CLOSE. Then check "add current settings to ASCII definitions"
Description:MT4, FILE MASK *.csv*, default. - Charts will be backfilled and you can hit Reconnect
- Repeat step 4 and use the hotkeys (takes less than 1min to do this manually, works great since i only trade 4 currencies)
HERE IS THE PROBLEM
Once I have backfilled all the intraday data on the 5min chart, the
charts on AB looks identical to MT4 at 05:50. But when I connect the
DDE from AB at 05:53 to update the current bar, AB deletes the last 30
bars and my charts change and will appear different than the one at
05:50. What could be the problem?
Any help is appreciated
thanks
tony
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For other support material please check also:
http://www.amibroker.com/support.html
SPONSORED LINKS
YAHOO! GROUPS LINKS
Attachment:
AB.jpg
Description: JPEG image
Attachment:
ABwithDDE.jpg
Description: JPEG image
Attachment:
MT4.jpg
Description: JPEG image
|