TA-Lib / ta-lib-python

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

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

Open albertZhuo420 opened 1 week ago

albertZhuo420 commented 1 week 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