I also attempt to filter out low volume candles during regimes of low volatility. Candles which are classified as 'low volume' are not added to the Bollinger Band array calculation
See the Tradingview publish here: https://www.tradingview.com/script/dKez8gHV-Bollinger-Band-Candles/