ta-lib-python
ta-lib-python copied to clipboard
TALib RSI function not being called
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
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.