By searching here in the database - you would have found this:
- https://www.mql5.com/en/articles/4534
- https://www.mql5.com/en/articles/3074
- https://www.mql5.com/en/articles/5427
And there is more to find ...

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...
I make a EA that use RSI filter for up and dwon trend .
when filter show up signal only buy trade and vise versa.
Problem is when buy orders open near end of uptrend ,big loss happen.
How can know end of trend in this condition.
Similar case also happen in all trend indicators.
If use MA cross over system.Peoble is opening orders in near end of trend.
Any suggestion.