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
-
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. - 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. -
Don't double post!
General rules and best pratices of the Forum. - General - MQL5 programming forum
Thank you very much kypa!!!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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