MA in my EA Code

 

Dear Coders,

Would you tell me the if statement if i want to only take buy positions when price is above certain MA and Vice versa ?

thank you

 
located20c: Would you tell me the if statement if i want to only take buy positions when price is above certain MA and Vice versa ?

You haven't stated a problem, you stated a want. Show us your attempt (using the CODE button) and state the nature of your difficulty.
     How To Ask Questions The Smart Way. (2004)
          Prune pointless queries.

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.