class_docstr: This strategy is capable of:
  
    - Going Long with a Moving Average upwards CrossOver
  
    - Going Long again with a MACD upwards CrossOver
  
    - Closing the aforementioned longs with the corresponding downwards
      crossovers
class_docstr_tok: ["This","strategy","is","capable","of",":","-","Going","Long","with","a","Moving","Average","upwards","CrossOver","-","Going","Long","again","with","a","MACD","upwards","CrossOver","-","Closing","the","aforementioned","longs","with","the","corresponding","downwards","crossovers"]
code: def notify_order(self, order):
      if not order.alive():
          if not order.isbuy():  # going flat
              self.order = 0
  
          if order.status == order.Completed:
              tfields = [
                  self.p.myname,
                  len(self),
                  order.data.datetime.date(),
                  order.data._name,
                  "BUY" * order.isbuy() or "SELL",
                  order.executed.size,
                  order.executed.price,
              ]
  
              print(",".join(str(x) for x in tfields))
  
file_path: backtrader/samples/multi-copy/multi-copy.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import random
  import backtrader
label_desc: Use image node_id 1 for calling the TheStrategy obj's underlying member method code with example usage: obj.notify_order(order) without return types