Skip to content

stochasticRSI isn't working TypeError: stochasticRSI is not a function #57

@IrisiaIc

Description

@IrisiaIc

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));

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions