• Australian (ASX) Stock Market Forum

Hello and welcome to Aussie Stock Forums!

To gain full access you must register. Registration is free and takes only a few seconds to complete.

Already a member? Log in here.

Converting Metastock EOD data to MT4 history files for MT4 charting

Discussion in 'Software and Data' started by ajcode, Jul 13, 2014.

sentifi.com

Aussie Stock Forum Sentifi Top themes and market attention on:

  1. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    That's fantastic. Details in above posts :).
     
  2. cash888

    cash888

    Posts:
    1
    Likes Received:
    0
    Joined:
    Jan 29, 2017
    Thanks for your fantastic contribution. I notice the # of bars is capped at around 1500+. Can this be increase?
     
  3. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    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.
     

    Attached Files:

  4. masterdata

    masterdata

    Posts:
    1
    Likes Received:
    0
    Joined:
    Jul 28, 2017
    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.
     
  5. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    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.
     
  6. S.bala

    S.bala

    Posts:
    2
    Likes Received:
    0
    Joined:
    Aug 16, 2017
    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
     
  7. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    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.
     
  8. S.bala

    S.bala

    Posts:
    2
    Likes Received:
    0
    Joined:
    Aug 16, 2017
    Hi AJCODE,
    Thanks for your reply....
    Nothing happens.....Pop-up windows immediately closed( i think script window)....No error msg also...
    Thanks
    S.bala
     
  9. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    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.
     
  10. amani555

    amani555

    Posts:
    1
    Likes Received:
    0
    Joined:
    Aug 31, 2017
    why i cannot covert fileUntitled.jpg
     
  11. ali33

    ali33

    Posts:
    2
    Likes Received:
    0
    Joined:
    Jul 26, 2017
    i want help for Converting Metastock EOD data to MT4 intraday files for MT4 charting
     
  12. ali33

    ali33

    Posts:
    2
    Likes Received:
    0
    Joined:
    Jul 26, 2017
    انتي عندك خطاء بسيط
     
  13. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    This thread is End of Day (EOD) Data Only not Intraday.
     
  14. ajcode

    ajcode

    Posts:
    137
    Likes Received:
    19
    Joined:
    Feb 12, 2014
    Probably cause they may not contain metastock files. What's the error message?
     
  15. ck1981

    ck1981

    Posts:
    1
    Likes Received:
    0
    Joined:
    Feb 3, 2018
    Good Day , how can i get one working on windows 10
     
  16. ozgur0

    ozgur0

    Posts:
    2
    Likes Received:
    0
    Joined:
    Jul 18, 2019
    error accessing to master files in dbpath


    having master and emaster files in the folder. but I get this error message. please help me
     
  17. ghoool

    ghoool

    Posts:
    3
    Likes Received:
    1
    Joined:
    Aug 4, 2019
    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
     
  18. ozgur0

    ozgur0

    Posts:
    2
    Likes Received:
    0
    Joined:
    Jul 18, 2019
    Thank you for your answer. I did the same way. but again gives the same error. opens old metastock data.
     
Loading...

Share This Page