def eventOccurred(self, instrument, bards):
        ret = False
        if bards[-1].getDateTime().date() in self.__dates:
            ret = True
        return ret
dataset/ETHPy150Open gbeced/pyalgotrade/testcases/eventprofiler_test.py/Predicate.eventOccurred/original