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. 
 
Cis:
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. 

Hi Cis

Here is one by MLADEN.

regards

 
mntiwana:

Hi Cis

Here is one by MLADEN.

regards

Thanks so much :) will try out :)
 
mntiwana:

Hi Cis

Here is one by MLADEN.

regards

Hi, i look at the ea but it not what i wanted. basically what this do is it open position based on ma cross. :( 
 
Cis:
Hi, i look at the ea but it not what i wanted. basically what this do is it open position based on ma cross. :( 
It is doing exactly that : opening positions on ma cross
 
Hi, how do I set the parameter for I want the orders to open exactly when the 10EMA touches/crossover the 20EMA ?
Reason: