i can use talib MACD function correctly in python, but it failed in c++.
talib is easy to use in python, i can use it as:
MACD(close, 12, 26,9) # close