-
Notifications
You must be signed in to change notification settings - Fork 992
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Difference in EMA values between pandas-ta and tradingview #629
Comments
Hello @thecpshah, First, offset only shifts the result. Second, it is not really good to compare a TV datasource (apples) with Yahoo Finance (oranges). Sure, it's possible they maybe equal at times but not a guarantee. Third since you have TA Lib installed, Lastly, I recommend updating to the development branch. Hope this helps! Kind Regards, |
Thanks for reply. Disabling TA lib, gives me same result as Pandas' EWM. |
Also, the difference occurs for longer MAs. The numbers are very close for 20 or 50 days exponential MAs. |
Hello @twopirllc Thank for you reply, I think it's time to create new release, it's about more than 1 year since the last release on 2021. Many bugs had been fixed, many documents had been updated.
|
Hi @baotang2118
No worries. Apologies for the slow response. I have been intending to finish the remaining TA Lib ht_ indicators before making a new release. Unfortunately since the last release, my time has been more sparse than I expected. 😑 KJ |
Hi @twopirllc, just to know do you have an estimated date for the next release? can i still use the current library then will only have to replace by the new one once released? |
At my current rate, I estimate a couple of months at best. 🤷🏼♂️ Sadly my free time has been limited. 😑
You can use either, however I recommend the new one when it's updated. It fixes many bugs, improved speed & documentation. You can read more here. |
Which version are you running? The lastest version is on Github. Pip is for major releases.
0.3.14b0
Do you have TA Lib also installed in your environment?
Yes
Have you tried the development version? Did it resolve the issue?
No
Describe the bug
I am trying to calculate 200 days ema but the ema from ta is way off.
To Reproduce
Expected behavior
expected 200 days ema = 2720.93
Additional context
20 days and 50 days ema are matching with TradingView but not 100 and 200 days.
I tried to use help(ta.ema) but not sure which number to use for the offset argument
The text was updated successfully, but these errors were encountered: