def resampleBarFeed(self, frequency, callback):
        ret = resampled.ResampledBarFeed(self.getFeed(), frequency)
        ret.getNewValuesEvent().subscribe(callback)
        self.getDispatcher().addSubject(ret)
        self.__resampledBarFeeds.append(ret)
        return ret
Builds a resampled barfeed that groups bars by a certain frequency.
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/strategy/__init__.py/BaseStrategy.resampleBarFeed