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 made a custom moving average alert system in MQL4 that is suppose to alert me each time my two moving averages cross each other. I am quite new to coding so for whatever reason I get an alert but it is exactly one candle late. Any help would be greatly appreciated.
Here is the code for my Custom Indicator:
I'm not totally sure what to do with the OnCalculate function so I'm pretty sure that block of code is useless in my program as well. My apologies for any unorthodox or sloppy code.