TA-Lib / ta-lib-python

Python wrapper for TA-Lib (http://ta-lib.org/).
http://ta-lib.github.io/ta-lib-python
Other
9.79k stars 1.78k forks source link

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

Open albertZhuo420 opened 5 months ago

albertZhuo420 commented 5 months ago

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