double MA62Daily = iMA(NULL,PERIOD_D1,62,0,MODE_EMA,PRICE_CLOSE,0); if (MarketInfo(Symbol(), MODE_ASK) > MA62Daily) { //do someting }
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi all,
I suppose what I need already exist but I could not find it.
I need just need to know the code to detect when the price cross an EMA (in my case EMA's 62, 200 and 800).
Thanks a lot in advance!