EMA_CROSS

 

Does anyone know how to make EMA_CROSS (one of EA strategies) a stop and reverse system ? I just want it to be all the time in the market, so there're no stops and no targets. Current position is being reversed once EMAs cross each other.

Thank you

Matt

 
If you're using current bar Close price for calc of your MAs, and always in a trade, be aware that (unless you have hysteresis rather than simply crossing) you can quickly empty your account as price flips the cross over every few ticks and you swap being long & short multiple times.
 

Does anyone know how to change the code ? I was trying to set stops and targets to such values so they'll never be reached but it didn't work.

Reason: