Sideways detection indicator using Bollinger bands .
In this case we take the original ratio between lower and upper and we smooth it even harder in order to get a better idea about the accuracy of the trend.
If the initial ratio is not between 0 and 1 and the smooth ratio is higher than our selected value, we get an idea if we are a in trending market or not.
Of course using it as a standalone has no usage, and it has to be combined with other tools like moving average, oscillators and so on.