TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.46k stars 1.74k forks source link

TALib RSI function not being called #388

Open KarunChikhale opened 3 years ago

KarunChikhale commented 3 years ago

I imported the Talib library to use the SMA function.

import talib

feed.pop(0) feed.append(json.loads(message)['p']) print(talib.SMA(numpy.array(feed))) <<<<<<
print('hello world')

I imported talib and then tried printing the feed containing stock price floats. The problem is, that the SMA function, upon being called, is not returning anything and/or not even being called. The interesting part is that the "Hello World" is being printed out fine. Then I tried to go the definition of SMA (visual studio code), and it didn't take me anywhere. It said: "No definition found for SMA" or whatever.

P.S. FYI all other libraries that I have imported into the file work perfectly and predictably, except for import talib

Any idea? @mrjbq7

OS: Windows 10 Personal talib version: latest

SeongjinNam commented 3 years ago

I am not sure if I am going through the same problem as you. When I plot RSI, it produces the same chart as CMO does, with only difference of y axis value. The two graphs are exactly the same. I guess one of the two methods are not working as intended.