coin-unknown / Indicators

Technical indicators for cryptocurrencies, stocks and forex. To work with historical and real price data. One of the most efficient Javascript library implementations. The library has such indicators as: Relative Strength Index (RSI), Moving Average C / D (MACD), Average Directional Index (ADX), Stochastic Oscillator, Bollinger Bands, Average True Range (ATR) and many others
377 stars 54 forks source link

RSI values slightly different than TradingView or Webull #15

Closed gazsiazasz closed 2 years ago

gazsiazasz commented 2 years ago

I tried to calculate RSI from the chart data, but unfortunately the values I got from the RSI are not matching that what I see on the charts of the popular trading platforms. They are using some weighting in the SMA calculation, they call it RMA(SMA for RSI I guess). Is there a way to have this RMA as the moving average source in RSI implementation?

gazsiazasz commented 2 years ago

It looks like that I was using too few values as input, with more candles, I get the same values as expected.