talib.js
talib.js copied to clipboard
STOCH error
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
Please provide code to reproduce. I cannot tell much from this return value.