50 day ema

 

dear all

I m a begainer of EA,and I've tried using the link below:

http://sufx.core.t3-ism.net/ExpertAdvisorBuilder/

to get a 50dayema EA

the rules are simple, if close>50ema, set buy order, and if close <50ema, sell .

the question is: how to modify more into this EA ?

the EA i get from link, shows me that set buy order, and sell (close) order, and another sell order, and next buy (close) order . I just want to close order and set new oppsite order at same time. did anybody show me any tips?

thank you

Files: