I am learning so maybe I will be incorrect but my belief is that you might as well just have 2 completely different systems -
One for trending markets
One for sideways (ranging) markets
OR
Just stay out of a currency pair going sideways and find another that is similar and trending.
At least, that is what I have read in over 11 different books on trading.