code: def notify_order(self, order):
      if order.status == order.Cancelled:
          print(
              "CANCEL@price: {:.2f} {}".format(
                  order.executed.price,
                  "buy" if order.isbuy() else "sell",
              )
          )
          return
  
      if not order.status == order.Completed:
          return  # discard any other notification
  
      if not self.position:  # we left the market
          print("SELL@price: {:.2f}".format(order.executed.price))
          return
  
      # We have entered the market
      print("BUY @price: {:.2f}".format(order.executed.price))
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
label_desc: Use image node_id 1 for calling the AutoStopOrStopTrail obj's underlying member method code with example usage: obj.notify_order(order) without return types