ta-lib-python icon indicating copy to clipboard operation
ta-lib-python copied to clipboard

TALib RSI function not being called

Open KarunChikhale opened this issue 4 years ago • 1 comments

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

KarunChikhale avatar Jan 16 '21 18:01 KarunChikhale

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.

SeongjinNam avatar Feb 01 '21 08:02 SeongjinNam