talib.js icon indicating copy to clipboard operation
talib.js copied to clipboard

STOCH error

Open michelebanfi opened this issue 3 years ago • 1 comments

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

michelebanfi avatar Feb 06 '22 16:02 michelebanfi

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

hackape avatar Feb 09 '22 09:02 hackape