def __addCurrentReturns(self, instrument):
        nextTs = []
        for event, t in self.__futureRets[instrument]:
            event.setValue(t, self.__rets[instrument][-1])
            if t < event.getLookForward():
                t += 1
                nextTs.append((event, t))
        self.__futureRets[instrument] = nextTs
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/eventprofiler.py/Profiler.__addCurrentReturns/original