code: def next(self):
      dtstr = self.data.datetime.datetime().strftime(
          "%a %Y-%m-%d %H:%M:%S"
      )
      # print('%s: data' % dtstr)
      if self.order:
          return
  
      if not random.randint(
          0, 5
      ):  # roll a dice to decide entering/exit
          if self.position:
              print("%s: SELL CREATED" % dtstr)
              self.order = self.close(exectype=bt.Order.Close)
          else:  # no pending order
              print("%s: BUY  CREATED" % dtstr)
              self.order = self.buy(exectype=bt.Order.Close)
  
file_path: backtrader/samples/order-close/close-daily.py
imports: from __future__ import absolute_import, division, print_function
  import argparse
  import datetime
  import random
  import backtrader
  import backtrader.feeds
  from backtrader.utils.py3 import with_metaclass
label_desc: Use image node_id 3 for calling the St obj's underlying member method code with example usage: obj.next() without return types