code: def next(self):
      # print('self.data.close.array:', self.data.close.array)
      if self.orderid:
          # if an order is active, no new orders are allowed
          return
  
      if not self.position.size:
          if self.cross > 0.0:
              self.orderid = self.buy()
  
      elif self.cross < 0.0:
          self.orderid = self.close()
  
file_path: backtrader/tests/test_strategy_optimized.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import itertools
  import time
  import testcommon
  from backtrader.utils.py3 import range
  import backtrader
  import backtrader.indicators
label_desc: Use image node_id 5 for calling the TestStrategy obj's underlying member method code with example usage: obj.next() without return types