code: def __init__(self, barFeed, cash):
      strategy.BacktestingStrategy.__init__(self, barFeed, cash)
  
      # Maps dates to a tuple of (method, params)
      self.__orderEntry = {}
  
      self.__brokerOrdersGTC = False
      self.orderUpdatedCalls = 0
      self.onStartCalled = False
      self.onIdleCalled = False
      self.onFinishCalled = False
  
imports: import datetime
  from .None import common
  from pyalgotrade import strategy
  from pyalgotrade import broker
  from pyalgotrade.barfeed import yahoofeed
label_desc: Use image node_id 1 to create a new TestStrategy object from inherited base classes: strategy with example: obj = TestStrategy(barFeed, cash)