hackape / talib.js

TA-Lib C code ported to WebAssembly
https://hackape.github.io/talib.js
Other
30 stars 9 forks source link

STOCH error #5

Open michelebanfi opened 2 years ago

michelebanfi commented 2 years ago

talib.STOCH return empty arrays like this

[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, ... 1282 more items ]

The code that produce this is:

let STOCHS = talib.STOCH({
        high: highList,
        low: lowList,
        close: closeList,
        fastK_Period: 14,
        slowK_Period: 3,
        slowD_Period: 3,
      });

highList, lowList and closeList are simply array

hackape commented 2 years ago

Please provide code to reproduce. I cannot tell much from this return value.