I have a trend trading system and most losses appear in the range market condition. What can I use as a range identification for my system other than looking at trendlines and swing highs lows dynamic? I tried using ADX but it doesn't work well, it often signals range when there is a trend and vise versa.