code: def __init__(self):
      self.sma_small_tf = btind.SMA(self.data, period=self.p.period)
      bt.indicators.MACD(self.data0)
  
      if not self.p.onlydaily:
          self.sma_large_tf = btind.SMA(
              self.data1, period=self.p.period
          )
          bt.indicators.MACD(self.data1)
  
file_path: backtrader/samples/data-multitimeframe/data-multitimeframe.py
imports: from __future__ import absolute_import, division, print_function, unicode_literals
  import argparse
  import backtrader
  import backtrader.feeds
  import backtrader.indicators
  from backtrader import ResamplerDaily, ResamplerWeekly, ResamplerMonthly
  from backtrader import ReplayerDaily, ReplayerWeekly, ReplayerMonthly
  from backtrader.utils import flushfile
label_desc: Use image node_id 1 to create a new SMAStrategy object from inherited base classes: bt with example: obj = SMAStrategy()