markcheno / go-talib

A pure Go port of TA-Lib (http://ta-lib.org)
MIT License
763 stars 213 forks source link

why the macd result is very diffenent from original talib result? #1

Open baofengqqwwff opened 7 years ago

baofengqqwwff commented 7 years ago

i look into your code,what is k1 and k2?

baofengqqwwff commented 7 years ago

sorry,it's same,gogland just show 100 result。。。

iamjinlei commented 3 years ago

I found it is due the factor that go-talib uses different initial skip period from the C version. I fixed the issue in https://github.com/iamjinlei/go-tart/blob/master/macd.go