Open EatsJE opened 3 years ago
@EatsJE The link provides an example on how to use the calculation: https://runkit.com/anandaravindan/rsi
The RSI can be calculated on any type of value, in my case I use the close price. Create an Object with keys, values and period. Values should be an array of 'close' prices or whatever you choose. The period should be the RSI period you want to evaluate. Keep in mind that RSI calculation requires n+1 values, a 14-day period requires 15 values in the array.
Pass the object into rsi.calculate(your_object). Keep in mind that your array[0] is the oldest data. I believe there is a 'reverse' parameter you can pass into the object as either true or false. This would account for your input array having the latest value at index 0.
Hi! Firstly, thanks for developing an awesome package!
Its a bit of a stupid question, but I can't find the answer in any docs/issues. What are the input vales for RSI?
const rsi = require('technicalindicators').rsi;
rsi({????});
The Binance API returns 15 day price data (to calc 14d RSI) in the below format, what calculation needs to be made before passing into the rsi() function?
Thank you! :)