Need help making an indicator checks to see if MA of current price is higher/lower than MA in the last X sessions
bump
![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
I did write some code but I have no experience with MQL or programming, in general, and this code is definitely not the right way to do it:
Could someone put me on the right track? I know I'm doing this wrong.