예제 #1
0
 def testBOP(self):
     barDs = self.__loadBarDS()
     self.assertTrue(compare(indicator.BOP(barDs, 252)[0], -0.40))
     self.assertTrue(compare(indicator.BOP(barDs, 252)[1], 0.94))
예제 #2
0
 def testBOP(self):
     barDs = self.__loadBarDS()
     self.assertAmountsAreEqual(indicator.BOP(barDs, 252)[0], -0.40)
     self.assertAmountsAreEqual(indicator.BOP(barDs, 252)[1], 0.94)