markcheno / go-talib

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

Index out of range with Stoch() #3

Closed btjsteens closed 7 years ago

btjsteens commented 7 years ago

Steps to reproduce In your talib_test.go file, change inFastKPeriod to a higher value, e.g. 12.

slowk, slowd := Stoch(testHigh, testLow, testClose, 12, 3, SMA, 3, SMA)

Index out of range error occurs on the following line: outSlowK[j] = tempBuffer1[i]

GreatGreatGreg commented 7 years ago

exactly same problem here. Please fix it. Thanks

markcheno commented 7 years ago

This should be fixed with the latest commit. Thanks for the heads up.