markcheno / go-talib

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

HtTrendline Gives index out of range #2

Closed VarunBatraIT closed 4 years ago

VarunBatraIT commented 7 years ago

panic: runtime error: index out of range goroutine 7 [running]: github.com/markcheno/go-talib.HtTrendline(0xc42025ea00, 0x1a, 0x20, 0x6, 0xc8, 0xc420268274) /home/codevarun/go/src/github.com/markcheno/go-talib/talib.go:185 +0x10b5

markcheno commented 7 years ago

I can't tell if there is a problem with the info given. My guess would be bad input data.

VarunBatraIT commented 7 years ago

Hi, Same data worked on a wrapper. (github.com/d4l3k/talib)

markcheno commented 7 years ago

If you can give me example data to reproduce the problem, I can fix it.

pharrisee commented 6 years ago

Hilbert Trendline is based on a minimum of 63 points of data it seems, which is backed up by the comment on line 142 of talib.go