Hi, can anyone clean this code for me. i tried to compile it in metaeditor but i get some error. i use this website http://www.forexeadvisor.com/expert_generator.aspx to generate the code. Basically what this does is this EA will close any open position when it reach 60 pip or when 20 ema cross below 50 ema for long position and 20 ema cross above 50 ema for short position. I tried to clean the code but i cant get it to work. Can someone help?
Files:
closeopenposition.mq4
4 kb
- SL and TP system
- CROSS EAs
- Universal MA Cross EA
Cis:
Hi, can anyone clean this code for me. i tried to compile it in metaeditor but i get some error. i use this website http://www.forexeadvisor.com/expert_generator.aspx to generate the code. Basically what this does is this EA will close any open position when it reach 60 pip or when 20 ema cross below 50 ema for long position and 20 ema cross above 50 ema for short position. I tried to clean the code but i cant get it to work. Can someone help?
Hi, can anyone clean this code for me. i tried to compile it in metaeditor but i get some error. i use this website http://www.forexeadvisor.com/expert_generator.aspx to generate the code. Basically what this does is this EA will close any open position when it reach 60 pip or when 20 ema cross below 50 ema for long position and 20 ema cross above 50 ema for short position. I tried to clean the code but i cant get it to work. Can someone help?
Are you sure it was generated by that thing? If it was, than it is very bad
Anyway, try the attached (errors corrected, the rest is up to you)
Files:
![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