3 EMA treading Strategy

 

I am trying to automate a relationship on EA on MT4.

Moving Average A: Period – 10 Shift – 0 MA Method – Exponential Apply to – Close

Moving Average B: Period – 25 Shift – 0 MA Method – Exponential Apply to – Close

Moving Average C: Period – 50 Shift – 0 MA Method – Exponential Apply to - Low

Timeframe is 4 Hour 

if EMA 10 Cross EMA 25 & EMA 50 then Buy Position and EMA 50 Cross EMA 25 & EMA 10 then Sell Position 

if EMA 10 Cross EMA 25 then Close Buy Position and EMA 50 Cross EMA 25 then Close Sell Position  

 

Your topic has been moved to the section: MQL4 e MetaTrader 4 — In the future, please consider which section is most appropriate for your query.

  • Usually people who cannot code do not receive free help on this forum.
  • If you show your attempts and describe your problem clearly, you will most probably receive an answer from the community. Use the CODE button (Alt-S) when inserting code.
  • If you do not want to learn to code, that is not a problem. You can either look at the Codebase if something free already exists, or in the Market for paid products (also sometimes free). However, recommendations or suggestions for Market products are not allowed on the forum, so you will have to do your own research.
  • Finally, you also have the option to hire a programmer in the Freelance section.
 
Vir Abhimanyu: I am trying to automate a relationship on EA on MT4.
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. You haven't stated a problem, you stated a want.
         How To Ask Questions The Smart Way. (2004)
              Prune pointless queries.

    You have only four choices:

    1. Search for it (CodeBase or Market). Do you expect us to do your research for you?

    2. Try asking at:

    3. MT4: Learn to code it.
      MT5: Begin learning to code it.

      If you don't learn MQL4/5, there is no common language for us to communicate. If we tell you what you need, you can't code it. If we give you the code, you don't know how to integrate it into your code.

    4. Or pay (Freelance) someone to code it. Top of every page is the link Freelance.
                Hiring to write script - General - MQL5 programming forum (2019)

    We're not going to code it for you (although it could happen if you are lucky or the problem is interesting.) We are willing to help you when you post your attempt (using CODE button) and state the nature of your problem.
              No free help (2017)