'Update internal state based on price triggers and the
trade event\'s price.'

def check_triggers(self, price, dt):

    (stop_reached, limit_reached, sl_stop_reached) = self.check_order_triggers(price)
    if ((stop_reached, limit_reached) != (self.stop_reached, self.limit_reached)):
        self.dt = dt
    self.stop_reached = stop_reached
    self.limit_reached = limit_reached
    if sl_stop_reached:
        self.stop = None
