Open gugeswe opened 2 years ago
Hello @gugeswe,
Since you did not mention which version you are running, I am assuming it is version 0.3.14b.
I just noted that the RSI_14 from pandas_ta does not give the same values as I can get from trade view and my own formula.
That's highly probable as this package is a Python port of the de facto TA Lib library (if a user is unable to install TA Lib) or wrapper for TA Lib (if it is installed in their local environment). While this library does match many indicators with TradingView, this is not a TradingView library nor do they support it any way. 🤷🏼♂️
For more info regarding rsi being discussed can be found at Issue #69. In short:
That being said, I do not mind adding a TradingView version, but it is more difficult to test against as they do not have an easily testable library.
In the mean time, use your version of rsi until I, you or someone else makes a Pull Request to make an toggleable TradingView version. A numpy version would be best for performance reasons. 😎
Kind Regards, KJ
Given that RSi is relatively simple and there is full concensus on how to calculate it, hence it should be a fully deterministic result without any variance, at least to the first 3-4 digits after the fraction denominator, as there can be induced microscopic variances due to different type of floats used etc. it is to be expected that it should not differ from platform to platform. if TA-Libs RSI calculation is wrong, i will recommend that we use the correct formula instead. even if we are not able to leverage the speedy C mechanics of TA-Lib, i think we should be able to calculate rsi pretty fast with numpy or similar. Ofcourse if your intend is to be a truthful wrapper to TA-Lib i can see this is a dilemma, but it would be justified to do given the above reasons :)
Which version are you running? The lastest version is on Github. Pip is for major releases.
Do you have TA Lib also installed in your environment?
Did you upgrade? Did the upgrade resolve the issue?
Describe the bug A clear and concise description of what the bug is.
To Reproduce Provide sample code.
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Additional context Add any other context about the problem here.
Thanks for using Pandas TA!
Hi, I just noted that the RSI_14 from pandas_ta does not give the same values as I can get from trade view and my own formula. This is from pandas_ta:
this is from my own formula: TSLA rsi from formula
This is the formula I use (gives the same as tradeview.com)
I am trying to detect minimum points in RSI and above I have marked with '*' the different values from pandas_ta and my own.