Improvements comparing to out-of-box BB and KC indicators:
1) It is rewritten based on underlying functions, so that when you need to write strategy, you can call the function directly.
2) it gives you choice of moving average type. I only enable EMA and SMA, but you can add more with simple coding.
3) the mid line can be in two colors when it is up/down from last bar.