MA Over the Price

 

 Hello All,

I want to ask you, as you know, in MQL4 code, when the indicator of Moving Average, EMA, is above the price of the current trend, for example of 20 pips (in Forex)

Thank you very much to anyone who can help me
 

This should comment the difference between last bid and last EMA 20:

Comment(MathAbs(int((Bid-iMA(_Symbol,_Period,20,0,MODE_EMA,PRICE_CLOSE,0))/Point)));
 
PaoloSicilio anyone who can help me
  1. Why did you post your MT4 question in the Root / MT5 EA section instead of the MQL4 section, (bottom of the Root page?)
              General rules and best pratices of the Forum. - General - MQL5 programming forum
    Next time post in the correct place. The moderators will likely move this thread there soon.

  2. Help you with what? You haven't stated a problem, you stated a want. Show us your attempt (using CODE button) and state the nature of your problem.
              No free help
              urgent help.

  3. Don't double post!
              General rules and best pratices of the Forum. - General - MQL5 programming forum
 
Thank you very much kypa!!!
 

OK whroeder1

I'm new in this post.

Thank you.

Reason: