import numpy import talib data = numpy.random.random(100) upper, middle, lower = talib.BBANDS(data, matype=talib.MA_T3)