How to compile a mq4 file to form an exe4?
Results 1 to 7 of 7
  1. #1
    Join Date
    May 2009
    Posts
    4

    Default How to compile a mq4 file to form an exe4?

    How do you use the compiler in MQ4 to create exe.4 files to use?Specifically to use some custom indicators on MQ4
    charts.Any help would be greatly appreciated.
    Thank you.
    Last edited by cdodge09; 07-06-2009 at 09:36 PM. Reason: awkward form

  2. #2
    o990l6mh's Avatar
    o990l6mh is offline FX-Men Honorary Member
    Join Date
    Aug 2008
    Location
    Southern Sweden
    Posts
    2,763
    Quote Originally Posted by cdodge09 View Post
    How do you use the compiler in MQ4 to create exe.4 files to use?Specifically to use some custom indicators on MQ4
    charts.Any help would be greatly appreciated.
    Thank you.
    Personally I have no idea, but it might be a good idea to post your question in this section: Expert Advisors and Automated Trading
    I must not fear. Fear is the mind-killer. Fear is the little-death that brings total obliteration. I will face my fear. Part of: Bene Gesserit Litany Against Fear

  3. #3
    TalonD's Avatar
    TalonD is offline FX-Men Honorary Member
    Join Date
    Apr 2009
    Posts
    3,892
    I've done it with EAs, for an indicator you have to put it in the indicator folder, inside the experts folder which is inside the folder where your metatrader is located. All that is under programs folder on your C drive.

    if you double click on the mq4 object (looks like a yellow diamond with an exclamation point inside) then the source code comes up. click on compile on the top of the screen. at the bottom of the screen it will show you if you have any errors. This creates the ex4 object.

    then close and restart your metatrader and the indicator should be there available for use.

    works the same way with EAs but they go directly into the experts folder


    I'm no expert by the way, hope that's not too confusing
    Last edited by TalonD; 07-07-2009 at 04:25 PM.

  4. #4
    Sweet Pip's Avatar
    Sweet Pip is offline FX-Men Honorary Member
    Join Date
    Nov 2007
    Location
    BC, Canada
    Posts
    3,191
    Hi,
    Without knowing if you know how to code in mql, once you've written your code or modified/have someone else's code (.mq4 file extension) it is usually compiled in metaquotes editor. In there you simply click the "Compile" button and it will make the .ex4 file (as long as there are no syntax errors )

    Hope that helps
    Success is getting what you want...Happiness is wanting what you get!
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 signatures.

  5. #5
    Sweet Pip's Avatar
    Sweet Pip is offline FX-Men Honorary Member
    Join Date
    Nov 2007
    Location
    BC, Canada
    Posts
    3,191
    Quote Originally Posted by TalonD View Post

    then close and restart your metatrader and the indicator should be there available for use.
    Hey TalonD,
    Just a tip, when you successfully compile an indicator or EA, it will automatically show up accordingly in the navigator window so you don't have to close and restart MT4...
    Success is getting what you want...Happiness is wanting what you get!
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 signatures.

  6. #6
    TalonD's Avatar
    TalonD is offline FX-Men Honorary Member
    Join Date
    Apr 2009
    Posts
    3,892
    Thanks sweetpip, everything I read said close it and restart so I've been doing that. Didn't even think to try it without doing that.

  7. #7
    Sweet Pip's Avatar
    Sweet Pip is offline FX-Men Honorary Member
    Join Date
    Nov 2007
    Location
    BC, Canada
    Posts
    3,191
    Quote Originally Posted by TalonD View Post
    Thanks sweetpip, everything I read said close it and restart so I've been doing that. Didn't even think to try it without doing that.
    You're welcome. Yes if you just copy an ex4 file to the appropriate directory/folder, then you do have to close and restart, but not if you compile it.

    I've worked with so many different softwares over the years that I'm always on the lookout for shortcuts...lol..and I'm still learning new ones all the time too.

    Success is getting what you want...Happiness is wanting what you get!
    To view links or images in signatures your post count must be 10 or greater. You currently have 0 signatures.

Forum Sponsors

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
"Many of life's failures are people who did not realize how close they were to success when they gave up."
Thomas Edison