Пример #1
0
 def testBETA(self):
     barDs = self.__loadBarDS()
     self.assertAmountsAreEqual(
         indicator.BETA(barDs.getHighDataSeries(), barDs.getLowDataSeries(),
                        252, 5)[5], 0.62907)
     self.assertAmountsAreEqual(
         indicator.BETA(barDs.getHighDataSeries(), barDs.getLowDataSeries(),
                        252, 5)[6], 0.83604)
Пример #2
0
 def testBETA(self):
     barDs = self.__loadBarDS()
     self.assertTrue(
         compare(
             indicator.BETA(barDs.getHighDataSeries(),
                            barDs.getLowDataSeries(), 252, 5)[5], 0.62907))
     self.assertTrue(
         compare(
             indicator.BETA(barDs.getHighDataSeries(),
                            barDs.getLowDataSeries(), 252, 5)[6], 0.83604))