Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
IrisiaIc opened this issue Oct 19, 2023 · 2 comments
Open

Comments

@IrisiaIc
Copy link

IrisiaIc commented Oct 19, 2023

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));
@dejmsi
Copy link

dejmsi commented Jun 1, 2024

@IrisiaIc try use console.log(await stochasticrsi(3, 3, 14, "close", input)), hope that helps.

@sidewapboss
Copy link

Can I see your complete code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants