def testULTOSC(self): barDs = self.__loadBarDS() self.assertTrue( compare(indicator.ULTOSC(barDs, 252, 7, 14, 28)[28], 47.1713)) self.assertTrue( compare(indicator.ULTOSC(barDs, 252, 7, 14, 28)[29], 46.2802)) self.assertTrue( compare(indicator.ULTOSC(barDs, 252, 7, 14, 28)[-1], 40.0854))
def testULTOSC(self): barDs = self.__loadBarDS() self.assertAmountsAreEqual( indicator.ULTOSC(barDs, 252, 7, 14, 28)[28], 47.1713) self.assertAmountsAreEqual( indicator.ULTOSC(barDs, 252, 7, 14, 28)[29], 46.2802) self.assertAmountsAreEqual( indicator.ULTOSC(barDs, 252, 7, 14, 28)[-1], 40.0854)