def notify_trade(self, trade):
    if trade.justopened:
        self.position_bar = trade.baropen
        self.position_highest = float('-inf')