code: def notify_order(self, order):
      if order.status in [order.Submitted, order.Accepted]:
          # Buy/Sell order submitted/accepted to/by broker - Nothing to do
          self.log("ORDER ACCEPTED/SUBMITTED", dt=order.created.dt)
          self.order = order
          return
  
      if order.status in [order.Expired]:
          self.log("BUY EXPIRED")
  
      elif order.status in [order.Completed]:
          if order.isbuy():
              self.log(
                  "BUY EXECUTED, Price: %.2f, Cost: %.2f, Comm %.2f"
                  % (
                      order.executed.price,
                      order.executed.value,
                      order.executed.comm,
                  )
              )
  
          else:  # Sell
              self.log(
                  "SELL EXECUTED, Price: %.2f, Cost: %.2f, Comm %.2f"
                  % (
                      order.executed.price,
                      order.executed.value,
                      order.executed.comm,
                  )
              )
  
      # Sentinel to None: new orders allowed
      self.order = None
  
file_path: backtrader/samples/observers/observers-orderobserver.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from orderobserver import OrderObserver
label_desc: Use image node_id 2 for calling the MyStrategy obj's underlying member method code with example usage: obj.notify_order(order) without return types