The RSI value calculated using the RSI API and the discrepancy in the token K line chart, please explain why?

Author: fxhover, Created: 2021-01-25 16:07:51, Updated: 2021-01-25 16:08:34

As shown in the graph below, the RSI value of the token K Chart 1 hour on 2021-1-23 23:00:00 is 48.08:img

However, the value I calculated using the API is not consistent with the value of the token K string graph, which is calculated as follows: r is for exchange.GetRecords ((60*60) rsi = TA.RSI ((r, 9) [-1] Log ((rsi: , rsi) is a word used in the English language.

2021-1-23 23:00:00 Diary output: 2021-01-23 23:00:00 information rsi: 41.77656327577841

I'm not sure what the reason is.


More

The grassI'm not sure if I can use the open source code myself.

The grassThe algorithm of RSI is open source, the parameters are different, the number of cumulative K lines is different, there will be differences.

fxhoverI don't understand, the added platform is tokens.

The grassIt's the API of the platform you're adding.

fxhoverI also found that the data obtained from the K line is not very similar to the data from the tokens, I don't know which platform fmz uses.