How can solve problem in side trend not to open orders

 

I always get problem in sidetrend .

I want to stop ordes in sidetrend .How can do it?

example trade condition is MA crossover but this is fake cross and it is side trend.So need to identify it is range or not.

If range market need to stop open orders.

How can do it .

I checked order functions.

Can use delay open order function?

 

Start reading this: https://www.mql5.com/en/articles/4534 and the other articles from the author?

Bear in mind there is almost nothing that has not be considered or programmed for MT5 - just search first!

Comparative analysis of 10 flat trading strategies
Comparative analysis of 10 flat trading strategies
  • www.mql5.com
Trend following strategies are very popular and easy-to-use, especially for beginners. However, current markets have become more dynamic, while trend movements are less distinct (in terms of both range and duration). By not using the possibility of trading in flat or sideways markets, we lose potential profits. Trend following trading rules are...