def __isReversal(self, value, breakUp):
        assert(len(self))
        lines = self[self.__reversalLines*-1:]
        if breakUp:
            breakPoint = max([line.getHigh() for line in lines])
            ret = value > breakPoint
        else:
            breakPoint = min([line.getLow() for line in lines])
            ret = value < breakPoint
        return ret
dataset/ETHPy150Open gbeced/pyalgotrade/pyalgotrade/technical/linebreak.py/LineBreak.__isReversal/original