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

TypeError: indicators.atr.calculate is not a function #59

Open
sky00781 opened this issue Jan 5, 2024 · 0 comments
Open

TypeError: indicators.atr.calculate is not a function #59

sky00781 opened this issue Jan 5, 2024 · 0 comments

Comments

@sky00781
Copy link

sky00781 commented Jan 5, 2024

hello,i just use the bellow code,the the error
image

anything i missed? how can i fixed it.

my code is :

async function test(){
const { atr, getDetachSourceFromOHLCV } = require('trading-indicator')
const { input } = await getDetachSourceFromOHLCV('binance', 'BTC/USDT', '1h', false) // true if you want to get future market
console.log(input);
let atrData = await atr(14, "close", input)
console.log(atrData[atrData.length - 1])
}

(async function(){
// await ready()
await test()
})();

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

1 participant