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:
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 ((
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.
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.