def getNextBars(self):
        ret = None
        if self.__nextPos < len(self.__bars):
            ret = self.__bars[self.__nextPos]
            self.__currDateTime = ret.getDateTime()
            self.__nextPos += 1
        return ret
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/barfeed/__init__.py/OptimizerBarFeed.getNextBars/original