Пример #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)