示例#1
0
 def test_EMA(self):
     ttr.ema(self.x)
示例#2
0
 def test_ttr(self):
     ema = ma.ema(self.x, window=14)
     ttr_ema = ttr.ema(self.x, n=14)
     self.assert_eq(ema, ttr_ema)