def testHT_DCPERIOD(self): ds = self.__loadMedPriceDS() self.assertTrue(compare( indicator.HT_DCPERIOD(ds, 252)[32], 15.5527, 4)) self.assertTrue(compare( indicator.HT_DCPERIOD(ds, 252)[-1], 18.6140, 4))
def testHT_DCPERIOD(self): ds = self.__loadMedPriceDS() self.assertAmountsAreEqual( indicator.HT_DCPERIOD(ds, 252)[32], 15.5527, 4) self.assertAmountsAreEqual( indicator.HT_DCPERIOD(ds, 252)[-1], 18.6140, 4)