thanhnguyennguyen / trading-indicator

provide trading technical indicator values based on data of almost crypto currency exchanges
https://www.npmjs.com/package/trading-indicator
241 stars 55 forks source link

Get Current single value MACD (or other indicator) #53

Open kouarfarouk opened 2 years ago

kouarfarouk commented 2 years ago

Hi,

How to get the single value of MACD (or other any indicator), i get 400 values, i want to see only the current value in last 1 hour

For exemple the current MACD of BTCUDT is 100 but i got a banch of values from -300 to 1200

Thnks!

tutovit commented 2 years ago

let data = await require('trading-indicator').rsiCheck(14, 75, 25, 'binance', 'BTC/USDT', '1h', false) console.log(data);