Australian (ASX) Stock Market Forum

Converting Metastock EOD data to MT4 history files for MT4 charting

Thanks for your fantastic contribution. I notice the # of bars is capped at around 1500+. Can this be increase?
 
A bug was found in the MS2MT4DLL.dll to do with long security symbols being written into the period field of the history file which stuffs everything up. I have now hopefully corrected the issue.

Note: Metatrader only allows for 11 characters in the security symbol and I always make the first character an underscore. This means that security symbols containing 10 or more characters where the first 10 characters are the same will cause previous files to be overwritten if 2 or more security symbols contain the same first 10 characters.

Attached is the updated MS2MT4DLL.dll (32 bit and 64 bit).

Cheers,

Andrew.
 

Attachments

  • MS2MT432_20170524.zip
    189.3 KB · Views: 50
  • MS2MT464_20170524.zip
    225.3 KB · Views: 54
I am optimistic this is going to solve an issue I am running into. I have downloaded the .dll. How is it used?
Thank you.
 
I am optimistic this is going to solve an issue I am running into. I have downloaded the .dll. How is it used?
Thank you.

Hi,

Details should be self explanatory in first page of thread. The dll requires a script to execute its code and I have uploaded 3 types of scripts (namely ms2mt4.pl, ms2mt4.py and ms2mt4.mq4). You can use any one of them.

Cheers,

Andrew.
 
Hi AJCODE,
Thanks for your excellent work......
I tried all the way what you mentioned in the first post to last post , i can't get the output....
When I run the pl or py script , i noticed pop up.....Nothing show error....But i can't get out put in the history file.....
I am using Windows 10 (×64 bit)
Any idea....To solve the issue....
Thanks & regards,
S.bala
 
Hi AJCODE,
Thanks for your excellent work......
I tried all the way what you mentioned in the first post to last post , i can't get the output....
When I run the pl or py script , i noticed pop up.....Nothing show error....But i can't get out put in the history file.....
I am using Windows 10 (×64 bit)
Any idea....To solve the issue....
Thanks & regards,
S.bala

Got any screen shots of the command prompt window and error message? I haven't run it on windows 10, but that hopefully shouldn't be the problem.
 
Got any screen shots of the command prompt window and error message? I haven't run it on windows 10, but that hopefully shouldn't be the problem.
Hi AJCODE,
Thanks for your reply....
Nothing happens.....Pop-up windows immediately closed( i think script window)....No error msg also...
Thanks
S.bala
 
Just wondering, how are you executing the script? On windows 7 you click on start button/all programs/accessories/command prompt. Navigate to directory where the files are and type "perl ms2mt4.pl" or "python ms2mt4.py", then look at the errors and post a screen shot. Surely there is a command prompt in windows 10? Maybe someone who has got it to work on Windows 10 can shred some light:confused:.

Andrew.
 
error accessing to master files in dbpath


having master and emaster files in the folder. but I get this error message. please help me
 
Take note of where your MS files are located as you will need to modify my ms2mt4.pl script and change the path of the variable "$metastockdbpath" to this location. As highlighted below
 
Take note of where your MS files are located as you will need to modify my ms2mt4.pl script and change the path of the variable "$metastockdbpath" to this location. As highlighted below
Thank you for your answer. I did the same way. but again gives the same error. opens old metastock data.
 
i can not find a version of 32 bit to install as all i found is the latest versions on the official site
 
Top