Attach ( ) full code of the advisor.
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 am having problems playing around with one of the sample EA's that comes with MT5, the Moving Average EA. I thought I could teach myself mql5 by hacking around with an existing EA.
This is how I have modified the "Check for close position conditions " of the EA by introducing two MAs, where a cross of one MA over the other closes the open position - yeah newbie stuff but you have to start somewhere!
The EA compiles just fine, any ideas why this doesn't close the open position when the MA's cross?