MT4 and the EAs -
1 2

thread: MT4 and the EAs

  1. #11
    Personally, I never did know why metatrader has opted to put indiors into one subdirectory and then the trading bots(ea's) in a different subdirectory and scripts are an entirely different animal(I have never personally written or used a script, lol). .

    The basic mt4 program types are: indiors and expertadvisors(ea's). .

    1) indiors can make pretty graphs but can not process trade orders. .

    Two ) ea's can make trade calls but can not make pretty graphs.

    Oh my gawd, I will never understand why we could not have made it as one document which goes in 1 subdirectory, but I am certain that metatrader likely had an excellent reason, I am convinced. .

    That is the basic differences between indiors and expertadvisors.

    Indiors are set into the file://EXPERTSINDICATORS subdirectory.

    Expertadvisors(ea's) have been set into the file://EXPERTS subdirectory.

    Happy communiing.

  2. #12
    Junior Member LuChwznO's Avatar
    25
    I will probably never know why we could not have made it as one document which goes into one subdirectory, but I am sure that metatrader probably had a very good reason, I am convinced. .
    Construction vs jumble is a good reason, hopefully to everyone who has ever written a program.

  3. #13
    OK, so my confusion can be put down to the Russian (?? ) Founders of MT4/5. That is useful, I know who to bitch about, lol.

    My thanks to szgy74 and https://www.cliqforex.com/trading-sy...-releases.html for the extra info, the book URL and video's will take up the remainder of my week or more likely the next few months!!

    That should keep you busy. . I'll say!!

  4. #14
    One really nice feature with metatarded is that we can attach a DLL for it.

    This provides complete control over the computer to the computer engineer.

    That a dll is DYNAMIC LINK LIBRARY.

    We could write a personalized program in C language and then call these new functions out of our metatrader EA.

    to learn more, search google for: METATRADER DLL TUTORIAL

  5. #15
    The very first thing to do is to write your very first indior. .

    The fundamental structure of an indior is:

    int init()


    //end of init



    int deinit()


    //end of deinit



    int start()


    if(MarketInfo(EURUSDct,MODE_BID)gt;1.29)
    PlaySound(siren.wav);

    //end start

  6. #16
    Junior Member LuChwznO's Avatar
    25
    What is sometimes quite annoying is that MT4 can not handle more than 512 specialists, indiors, etc. . directories.
    When you have more than 512 the last ones just don't appear in the terminal window.

  7. #17
    Junior Member alitaoxrgog's Avatar
    26
    Goto to http://www.mql4.com

    that you will find all of the documentation for the mql4 language, also articles on generating indiors, ea's scripts etc, along with a forum dedied to assisting

  8. #18
    OK, I have other query's. I have not done anything with EA's earlier and want to know a few basic things and try and get a deal on them. 1. Dont those progr ending in EX4 need to go into the Pros folder? 2. Dont those end in mq4 go into the Indior folder? 3. If the aforementioned is true then what exactly does the following mean? UniversalMACrossEA.mq4 I start this at MetaEditor and find it is an EA!!?? 4. Occasionally when I download an indior it seems to have an EA attached automatically in the Indior folder, why? 5. Some indiors ( ie *. Mq4...
    MQL4 files are the source code
    EX4 are the compiled MQL4 files
    Indiors, Eas and scripts all have both types of files but in case you haven't coded yourself, you might not have the MQL4 file.
    You cannot tell by the document type if they're an EA, script or indior, but you have to set them in the right folders.

  •