Ejemplo n.º 1
0
 def add_indicators(self):
     self.candles = self.candles.drop(['Open_time', 'Close_time'], axis=1)
     self.candles['EMA - 15'] = ema(self.candles['Close'].tolist(), 15)
     self.candles['aaron down'] = aroon_down(self.candles['Close'].tolist(), 25)
     self.candles['aaron up'] = aroon_up(self.candles['Close'].tolist(), 25)
     self.candles['tenkansen'] = tenkansen(self.candles['Close'].tolist())
     self.candles['kijunsen'] = kijunsen(self.candles['Close'].tolist())
     self.candles['momentun'] = momentum(self.candles['Close'], 15)
     return self.candles
Ejemplo n.º 2
0
 def test_kijunsen_default_period(self):
     ks = ichimoku_cloud.kijunsen(self.close_data)
     np.testing.assert_array_equal(ks, self.kijunsen_default_expected)