Code Monkey home page Code Monkey logo

Comments (3)

femtotrader avatar femtotrader commented on August 21, 2024

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.

Gabrielvon avatar Gabrielvon commented on August 21, 2024

@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.

mrjbq7 avatar mrjbq7 commented on August 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.