MetaTrader Help - How to Write an Expert Advisor?
Results 1 to 6 of 6
  1. #1

    Question MetaTrader Help - How to Write an Expert Advisor?

    I am wondering if anyone knows of some sample code or a tutorial (not the MetaQuotes website with the lnguage definitions) on how to do the following:

    1.) When MA(5) crosses EMA(21) speak a .wav file, or make a sound.

    2.) Same as #1, but will also send an email to an email address.

    I'm such a n00b, that I haven't been able to figure that out for quite some time.

    Thank you

  2. #2
    Join Date
    Dec 2006
    Posts
    99
    well, metatrader has a manual with the lauguage. its sooooo boring an by the time i finsished reading the whole thing, i forgot most of it. lol. i would also like to know if there is a video or easier tutorial.

  3. #3
    Thank you Honey Bee. I asked the Metatrader Yahoo Group also, and received the advice to look in the Tutorials and FAQ section of http://www.lightpatch.com/forex/

    I will post my studies here when I get a chance to review the lessons.

    Thanks again -

    Scott

  4. #4
    Join Date
    Nov 2013
    Location
    indonesia
    Posts
    31
    learning how to built EA is very difficult sir,,
    It can kill your time, just make order to EA builder, your own EA will be create quickly..

  5. #5
    For such a simple strategy you can use a graphical EA builder. Instead of code you build a flow diagram, like Simulink in Matlab. Alpari provides one to its clients but there are more. Google it.

  6. #6
    Join Date
    Dec 2014
    Posts
    14
    Quote Originally Posted by pipmeister View Post
    I am wondering if anyone knows of some sample code or a tutorial (not the MetaQuotes website with the lnguage definitions) on how to do the following:

    1.) When MA(5) crosses EMA(21) speak a .wav file, or make a sound.

    2.) Same as #1, but will also send an email to an email address.

    I'm such a n00b, that I haven't been able to figure that out for quite some time.

    Thank you
    Hello pipmeister,

    I read your post and as a programmer with a decade of experience I felt compelled to help you out a bit,

    If you really are a newbie to programming I would really suggest:

    Don't go for MQL straight ahead.

    You would probably ask "Why not?"

    First of all the MQL language is written by the people who write MT. And you cannot expect a full-time programmer to be a great teacher, nor to be a great language creator. In the real world programming languages are being developed by teams of people who dedicate to the single purpose of writing a language. There are other people who are dedicated to teaching programming. This is why the MQL tutorials won't give you any good base for programming anything, since MQL has it's flaws and the people who teach it, do not actually have an idea of how to teach it.

    I suggest you take a course in C++ (C++ is a mature programming language and MQL is based on C++ and very very similar to it -- let's say 95%). This will allow you to get how MQL works and how it can be helpful to you.

    This one seems good - C++ Training, Language & Library Jump Start - Microsoft Virtual Academy

    After you are done with the course - you can go for MQL. Going trough the course will save you a lot of time and frustration.
    Last edited by yavor99; 12-24-2014 at 02:22 AM.

Forum Sponsors

Similar Threads

  1. Metatrader 4 Expert Advisor Builder
    By topgun in forum Newbie Island
    Replies: 13
    Last Post: 03-20-2016, 06:11 PM
  2. How to get the expert advisor to place & close an order
    By Avagut in forum Free Forex Trading Systems
    Replies: 2
    Last Post: 03-27-2008, 01:58 AM
  3. expert advisor on mt4
    By roberto59 in forum Newbie Island
    Replies: 3
    Last Post: 03-20-2007, 02:06 PM
  4. Metatrader Help
    By leroy1 in forum Newbie Island
    Replies: 6
    Last Post: 03-09-2007, 01:27 PM
  5. Metatrader help please
    By kamoshikasan in forum Newbie Island
    Replies: 1
    Last Post: 02-14-2007, 12:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
"Money isn't everything but it sure keeps you in touch with your children."
J. Paul Getty