Forum

EA to close open position when small ma cross below big ma

Is there any ea that can close open position when small ema cross below big ema? I been searching but i cannot find. The closest one that i can get is inside this thread https://www.mql5.com/en/forum/181274 . It closes open position when one ma cross another one ma

Need someone to clean this code for me

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