code: def next(self):
      if not self.position:
          if random.randint(0, 1):
              self.buy(data=self.data0)
              self.entered = len(self)
  
      else:  # in the market
          if (len(self) - self.entered) >= 10:
              self.sell(data=self.data1)
  
file_path: backtrader/samples/future-spot/future-spot.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import random
  import backtrader
label_desc: Use image node_id 2 for calling the St obj's underlying member method code with example usage: obj.next() without return types