Results 1 to 5 of 5

Thread: How to create an *.ex4 file?

  1. #1
    Join Date
    Jan 2011
    Posts
    62
    Thanks
    7
    Thanked 2 Times in 2 Posts
    Forex Ability & Talent
    0

    How to create an *.ex4 file?

    I have an mq4 file which I am trying to use in my Meta Trader as an expert advisor, but it's not working. I presume one needs to have the mq4 version of the mq4 file for it to work?

    How on earth do I create it?


  2. #2
    Join Date
    Jun 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Forex Ability & Talent
    0
    Hi, don't know if you're still stuck on this, but if you are:
    To be able to load an EA (or script, or indicator) you must first compile the source code (*.mq4 file) into the *.ex4 file.
    1. Save the *.mq4 file to the /experts folder of the Metatrader installation on your PC
    2. Open the "MetaEditor" program (it has an icon with a black "!" on a yellow diamond)
    3. Go to File->Open and locate the *.mq4 source file you saved in step 1.
    4. Press the "Compile" button and verify that no errors are generated (in the output window) when making the *.ex4 file.
    5. Go to MT4 and in the EA section of the Navigator you should now see the name of the EA compiled in step 4.
    6. Now you can try to load the EA and set it running. Suggest you do this only on a demo account until you have fully tested the EA!


  3. #3
    Join Date
    Jan 2011
    Posts
    74
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Forex Ability & Talent
    0
    M00SEFX beat me to it. Great run down this^

    Thanks.


  4. #4
    Join Date
    Dec 2007
    Posts
    15,486
    Thanks
    0
    Thanked 9 Times in 6 Posts
    Forex Ability & Talent
    10
    Quote Originally Posted by M00SEFX View Post
    Hi, don't know if you're still stuck on this, but if you are:
    To be able to load an EA (or script, or indicator) you must first compile the source code (*.mq4 file) into the *.ex4 file.
    1. Save the *.mq4 file to the /experts folder of the Metatrader installation on your PC
    2. Open the "MetaEditor" program (it has an icon with a black "!" on a yellow diamond)
    3. Go to File->Open and locate the *.mq4 source file you saved in step 1.
    4. Press the "Compile" button and verify that no errors are generated (in the output window) when making the *.ex4 file.
    5. Go to MT4 and in the EA section of the Navigator you should now see the name of the EA compiled in step 4.
    6. Now you can try to load the EA and set it running. Suggest you do this only on a demo account until you have fully tested the EA!
    Thanks Ron; I couldn't have said it better myself; spot on, brilliant post.

    When you press compile Sarah, you may notice some errors which you can rectify. The error report is quite good at pointing out where the problems lay.

    Markets can remain irrational longer than you can remain solvent.

  5. #5
    Join Date
    Jan 2011
    Posts
    74
    Thanks
    2
    Thanked 0 Times in 0 Posts
    Forex Ability & Talent
    0
    Out of interest, where can you open/find the error reports?


Thread Information

Users Browsing this Thread

There are currently 10 users browsing this thread. (0 members and 10 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •