code: def next(self):
      if self.p.printdata:
          self.log(
              "Open, High, Low, Close, %.2f, %.2f, %.2f, %.2f, Sma, %f"
              % (
                  self.data.open[0],
                  self.data.high[0],
                  self.data.low[0],
                  self.data.close[0],
                  self.sma[0],
              )
          )
          self.log(
              "Close %.2f - Sma %.2f"
              % (self.data.close[0], self.sma[0])
          )
  
      if self.orderid:
          # if an order is active, no new orders are allowed
          return
  
      if not self.position.size:
          if self.cross > 0.0:
              if self.p.printops:
                  self.log("BUY CREATE , %.2f" % self.data.close[0])
  
              self.orderid = self.buy()
              chkprice = "%.2f" % self.data.close[0]
              self.buycreate.append(chkprice)
  
      elif self.cross < 0.0:
          if self.p.printops:
              self.log("SELL CREATE , %.2f" % self.data.close[0])
  
          self.orderid = self.close()
          chkprice = "%.2f" % self.data.close[0]
          self.sellcreate.append(chkprice)
  
file_path: backtrader/tests/test_strategy_unoptimized.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import time
  import testcommon
  import backtrader
  import backtrader.indicators
label_desc: Use image node_id 6 for calling the TestStrategy obj's underlying member method code with example usage: obj.next() without return types