Comments (3)
Thanks @Gabrielvon
You should provide a reusable minimum working example (with data as text and using StringIO
and read_csv
)
I think you should compare with https://www.ta-lib.org/hdr_dw.html source which is reference implementation.
Pinging @mrjbq7 author of https://github.com/mrjbq7/ta-lib which is Python wrapper for TA-Lib
from pandas_talib.
@femtotrader Thanks for your reminder. Attached is my sample data file.
sample.txt
Honestly, I don't really know which talib I used refer to the link (https://www.ta-lib.org/hdr_dw.html). I simply installed talib using "pip install TA-Lib" following instructions in the main page( https://github.com/mrjbq7/ta-lib) from mrjbq7. The following are my talib version and pands version.
(https://github.com/femtotrader/pandas_talib/files/1585183/sample.txt)
talib.__version__
'0.4.10'
pd.__version__
'0.21.1'
Hi, @mrjbq7. Any suggestions? Thanks.
My apologies. I just recalled that I instaledl TA-Lib using a third-party wrapper (TA_Lib‑0.4.10‑cp36‑cp36m‑win_amd64.whl) from here (https://www.lfd.uci.edu/~gohlke/pythonlibs/).
pip show TA-lib
Name: TA-Lib
Version: 0.4.10
Summary: Python wrapper for TA-Lib
Home-page: http://github.com/mrjbq7/ta-lib
Author: John Benediktsson
Author-email: [email protected]
License: UNKNOWN
Location: c:\users\trader\anaconda3\envs\py36\lib\site-packages
Requires:
from pandas_talib.
Wait, so you're comparing talib.MACD
(the cython wrapper calling the TA-Lib C library) to pandas_talib.MACD
(the python implementation using pandas.ewma
?). That's probably the problem. I bet the moving average is slightly different implemented between the two.
from pandas_talib.
Related Issues (19)
- Create unit tests (compare results of this Pandas implementation of TA-Lib with results of TA-Lib Python wrapper)
- Enable continuous integration with Travis
- Test for the ATR Indicator is failing HOT 1
- pip install pandas_talib not working HOT 4
- Merge code with other projects
- How to use pandas_talib?
- could not run "pip install pandas_talib" HOT 1
- Change input names when providing a Pandas DataFrame as input
- Similar projects
- When trying to import Talib i get the following error: ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject HOT 1
- i tried to use vp and i dont now whats the error HOT 1
- Apply a TA Lib indicator to a Panel (instead of a DataFrame)
- Help, docstring....
- return results or join results with input DataFrame
- while loops HOT 2
- ROC (Pandas implementation) doesn't return same value than TA-Lib Python wrapper
- Simplify setup.py HOT 8
- add code health to the project HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pandas_talib.