Closed loeffel-io closed 5 years ago
Tuplip indicators may be calculating the macd or moving averages slightly differently or perhaps you are using a different type of moving average?
This library is a direct port of ta-lib and has tests that verify the results match up with ta-lib exactly (including macd).
why they should calculate the macd or moving averages slightly differently? I am calculating the values by talib.Macd(data, 2, 5, 9)
.
Some people use different moving average types. The standard macd used ema, but ta-lib also has MacdExt which allows different moving average types to be used in the calculation. Just an idea. I have no idea what tulip is using. All I can say is that the results match the original ta-lib.
Ok, thank you
Hey, i get a different result if i use your macd func with the example data from here
data:
result: