code: def __init__(self):
      try:
          ind = self.p.chkind[0]
      except TypeError:
          chkind = [self.p.chkind]
      else:
          chkind = self.p.chkind
  
      if len(self.p.inddata):
          self.ind = chkind[0](*self.p.inddata, **self.p.chkargs)
      else:
          self.ind = chkind[0](self.data, **self.p.chkargs)
  
      for ind in chkind[1:]:
          ind(self.data)
  
      for data in self.datas[1:]:
          chkind[0](data, **self.p.chkargs)
  
          for ind in chkind[1:]:
              ind(data)
  
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import datetime
  import os
  import os.path
  import sys
  import backtrader
  import backtrader.utils.flushfile
  from backtrader.metabase import ParamsBase
label_desc: Use image node_id 1 to create a new TestStrategy object from inherited base classes: bt with example: obj = TestStrategy()