Moving Average Crossover EA Modification

 

My idea for the modification is to remove the Take Profit & Stop Loss and add a function closing the previous order when opposite signal form.

Example,

MA5 cross up MA21 = buy order

MA5 cross down MA21 = close previous buy order AND sell new order

MA5 cross up MA21 = close previous sell order AND buy new order

is there any way to modify the EA?

Files:
 
masshu:
My idea for the modification is to remove the Take Profit & Stop Loss and add a function closing the previous order when opposite signal form.

Example,

MA5 cross up MA21 = buy order

MA5 cross down MA21 = close previous buy order AND sell new order

MA5 cross up MA21 = close previous sell order AND buy new order

is there any way to modify the EA?

Did you check this https://www.mql5.com/en/forum/174086