Ejemplo n.º 1
0
 def testAVGPRICE(self):
     barDs = self.__loadBarDS()
     self.assertTrue(compare(indicator.AVGPRICE(barDs, 252)[0], 92.0))
     self.assertTrue(compare(indicator.AVGPRICE(barDs, 252)[1],
                             93.16))  # Original value was 93.17
Ejemplo n.º 2
0
 def testAVGPRICE(self):
     barDs = self.__loadBarDS()
     self.assertAmountsAreEqual(indicator.AVGPRICE(barDs, 252)[0], 92.0)
     self.assertAmountsAreEqual(indicator.AVGPRICE(barDs, 252)[1],
                                93.16)  # Original value was 93.17