Exemple #1
0
 def testMAMA(self):
     ds = self.__loadMedPriceDS()
     self.assertTrue(
         compare(indicator.MAMA(ds, 252, 0.5, 0.05)[0][32], 85.3643))
     self.assertTrue(
         compare(indicator.MAMA(ds, 252, 0.5, 0.05)[0][-1], 110.1116))
 def testMAMA(self):
     ds = self.__loadMedPriceDS()
     self.assertAmountsAreEqual(
         indicator.MAMA(ds, 252, 0.5, 0.05)[0][32], 85.3643)
     self.assertAmountsAreEqual(
         indicator.MAMA(ds, 252, 0.5, 0.05)[0][-1], 110.1116)