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 order.isbuy():
              buytxt = "BUY COMPLETE, %.2f" % order.executed.price
              self.log(buytxt, order.executed.dt)
          else:
              selltxt = "SELL COMPLETE, %.2f" % order.executed.price
              self.log(selltxt, order.executed.dt)
  
      elif order.status in [
          order.Expired,
          order.Canceled,
          order.Margin,
      ]:
          self.log("%s ," % order.Status[order.status])
          pass  # Simply log
  
      # Allow new orders
      self.orderid = None
  
file_path: backtrader/contrib/samples/pair-trading/pair-trading.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
label_desc: Use image node_id 2 for calling the PairTradingStrategy obj's underlying member method code with example usage: obj.notify_order(order) without return types