code: def testMACD(self):
      barDs = self.__loadBarDS()
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 12, 26, 9)[0][
              33
          ],
          -1.9738,
      )
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 12, 26, 9)[1][
              33
          ],
          -2.7071,
      )
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 12, 26, 9)[2][
              33
          ],
          (-1.9738) - (-2.7071),
      )
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 26, 12, 9)[0][
              33
          ],
          -1.9738,
      )
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 26, 12, 9)[1][
              33
          ],
          -2.7071,
      )
      self.assertAmountsAreEqual(
          indicator.MACD(barDs.getCloseDataSeries(), 252, 26, 12, 9)[2][
              33
          ],
          (-1.9738) - (-2.7071),
      )
  
imports: import datetime
  import talib
  from six.moves import xrange
  from .None import common
  from pyalgotrade.talibext import indicator
  from pyalgotrade import bar
  from pyalgotrade import dataseries
  from pyalgotrade.dataseries import bards
label_desc: Use image node_id 28 for calling the TestCase obj's underlying member method code with example usage: obj.testMACD() without return types