code: def __init__(self, feed, instrumentsByClass, initialCash):
      super(MarketTiming, self).__init__(feed, initialCash)
      self.setUseAdjustedValues(True)
      self.__instrumentsByClass = instrumentsByClass
      self.__rebalanceMonth = None
      self.__sharesToBuy = {}
      # Initialize indicators for each instrument.
      self.__sma = {}
      for assetClass in instrumentsByClass:
          for instrument in instrumentsByClass[assetClass]:
              priceDS = feed[instrument].getPriceDataSeries()
              self.__sma[instrument] = ma.SMA(priceDS, 200)
  
imports: from __future__ import print_function
  from pyalgotrade import strategy
  from pyalgotrade import plotter
  from pyalgotrade.barfeed import yahoofeed
  from pyalgotrade.technical import ma
  from pyalgotrade.technical import cumret
  from pyalgotrade.stratanalyzer import sharpe
  from pyalgotrade.stratanalyzer import returns
label_desc: Use image node_id 1 to create a new MarketTiming object from inherited base classes: strategy with example: obj = MarketTiming(feed, instrumentsByClass, initialCash)