Ejemplo n.º 1
0
 def testMFI(self):
     barDs = self.__loadBarDS()
     self.assertTrue(compare(indicator.MFI(barDs, 252, 14)[14], 42.8923))
     self.assertTrue(compare(indicator.MFI(barDs, 252, 14)[15], 45.6072))
     self.assertTrue(compare(indicator.MFI(barDs, 252, 14)[-1], 53.1997))
Ejemplo n.º 2
0
 def testMFI(self):
     barDs = self.__loadBarDS()
     self.assertAmountsAreEqual(indicator.MFI(barDs, 252, 14)[14], 42.8923)
     self.assertAmountsAreEqual(indicator.MFI(barDs, 252, 14)[15], 45.6072)
     self.assertAmountsAreEqual(indicator.MFI(barDs, 252, 14)[-1], 53.1997)