I'm trying to get stochasticRSI indicator but I got this TypeError
My code is copy from example for test
console.log(await stochasticRSI(3, 3, 14, 14, 'close', input));
^
TypeError: stochasticRSI is not a function
Did I miss something for make it work?
full code:
const { stochasticRSI, getDetachSourceFromOHLCV } = require('trading-indicator');
const { input } = await getDetachSourceFromOHLCV('binance', 'BTC/USDT', '1h', false); // true if you want to get future market
console.log(await stochasticRSI(3, 3, 14, 14, 'close', input));