There many way to identify the situation of the market, here is one of the best idea to identify the market is trending or sideway: we using the bollinger band and keltner channel, if the bollinger band is inside the keltner channel , it's mean the sideway situation. Contrarily, The market is in trending situation. This idea was used in BB squeeze indicator, you can see in this image: |
you can modify the indicator, with many options.