code: def next(self):
      if self.order:
          # pending order ... do nothing
          return
  
      # Check if we are in the market
      if self.position:
          if self.buysell < 0:
              self.log("SELL CREATE, %.2f" % self.data.close[0])
              self.sell()
  
      elif self.buysell > 0:
          plimit = self.data.close[0] * (1.0 - self.p.limitperc / 100.0)
          valid = self.data.datetime.date(0) + datetime.timedelta(
              days=self.p.valid
          )
          self.log("BUY CREATE, %.2f" % plimit)
          self.buy(exectype=bt.Order.Limit, price=plimit, valid=valid)
  
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 4 for calling the MyStrategy obj's underlying member method code with example usage: obj.next() without return types