code: def onBars(self, bars):
      dateTime = bars.getDateTime()
  
      # Check order entry.
      for meth, args, kwargs in get_by_datetime_or_date(
          self.__orderEntry, dateTime
      ):
          order = meth(*args, **kwargs)
          order.setGoodTillCanceled(self.__brokerOrdersGTC)
          self.getBroker().submitOrder(order)
  
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 8 for calling the TestStrategy obj's underlying member method code with example usage: obj.onBars(bars) without return types