code: def notify_trade(self, trade):
      if not self.p.prtrade:
          return
  
      if trade.isclosed:
          print(
              ",".join(
                  map(
                      str,
                      [
                          "TRADE",
                          "CLOSE",
                          self.data.num2date(trade.dtclose)
                          .date()
                          .isoformat(),
                          trade.value,
                          trade.pnl,
                          trade.commission,
                      ],
                  )
              )
          )
      elif trade.justopened:
          print(
              ",".join(
                  map(
                      str,
                      [
                          "TRADE",
                          "OPEN",
                          self.data.num2date(trade.dtopen)
                          .date()
                          .isoformat(),
                          trade.value,
                          trade.pnl,
                          trade.commission,
                      ],
                  )
              )
          )
  
file_path: backtrader/samples/btfd/btfd.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import datetime
  import backtrader
label_desc: Use image node_id 5 for calling the St obj's underlying member method code with example usage: obj.notify_trade(trade) without return types