code: def notify_order(self, order):
      if order.status in [bt.Order.Submitted, bt.Order.Accepted]:
          return  # Await further notifications
  
      if order.status == order.Completed:
          if isinstance(order, bt.BuyOrder):
              if self.p.printops:
                  txt = "BUY, %.2f" % order.executed.price
                  self.log(txt, order.executed.dt)
              chkprice = "%.2f" % order.executed.price
              self.buyexec.append(chkprice)
          else:  # elif isinstance(order, SellOrder):
              if self.p.printops:
                  txt = "SELL, %.2f" % order.executed.price
                  self.log(txt, order.executed.dt)
  
              chkprice = "%.2f" % order.executed.price
              self.sellexec.append(chkprice)
  
      elif order.status in [
          order.Expired,
          order.Canceled,
          order.Margin,
      ]:
          if self.p.printops:
              self.log("%s ," % order.Status[order.status])
  
      # Allow new orders
      self.orderid = None
  
file_path: backtrader/tests/test_strategy_unoptimized.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import time
  import testcommon
  import backtrader
  import backtrader.indicators
label_desc: Use image node_id 2 for calling the TestStrategy obj's underlying member method code with example usage: obj.notify_order(order) without return types