Skip to content
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

The data of MACD calculated by TA_MACDEXT is wrong. #659

Open
albertZhuo420 opened this issue Jul 1, 2024 · 0 comments
Open

The data of MACD calculated by TA_MACDEXT is wrong. #659

albertZhuo420 opened this issue Jul 1, 2024 · 0 comments

Comments

@albertZhuo420
Copy link

albertZhuo420 commented Jul 1, 2024

I used Binance's BOMEUSTD daily data to verify the MACD, the function I used was TA_MACD, the final result was inconsistent with Binance's data, then this function is based on the MA, so I dared to use TA_MACDEXT, and set TA_MAType_EMA, the final result is the same as TA TA_MACDEXT, and set TA_MAType_EMA, the result is the same as TA_MACD.
I switched to ta-lib-python, and the results are the same!!!!
I provide the python code, and the BOME k-line data.
The OS i used is Ubnutu22.04. use pip to install TA_LIB.

input.csv
macd_ta.py.txt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant