The calculation formula of RSI is consistent with the calculation result of the exchange.

Termos de Referência

The calculation formula for RSI indicator is as follows:

RSI = 100 – 100/ (1 + RS)
RS = Average Gain of n days UP  / Average Loss of n days DOWN

Please follow this URL link to learn more about the RSI indicator:


This is my PHP code: $sum_up=0.0;$sum_up_count=0; $sum_down=0.0;$sum_down_count=0; for($i=0;$i0){ $sum_up+=$ch; $sum_up_count++; }else if($ch


The RSI formula you sent out, I know, but the result is wrong. I saw in your tutorial that you have a parameter called RMA. What is the basis of this parameter? our calculation lacks this parameter. Resulting in incorrect results. What is the full name of rma, is it EMA or EWMA.Thank you


Average Gain of n days UP / Average Loss of n days DOWN


What exactly are these two parameters? are they measured by day or by number of candles?


Consult the calculation formula of the index: RSI in the exchange, and ask for consistency with the calculation result of the exchange.

Respondido

1
Desenvolvedor 1
Classificação
(206)
Projetos
333
35%
Arbitragem
66
12% / 58%
Expirado
87
26%
Livre
2
Desenvolvedor 2
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
3
Desenvolvedor 3
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Pedidos semelhantes
Hi i need help to connect my chat gtp with ninja trader I have all tools. Just need supervision and seeking a professional who can do that for me. This the bridge extension https://crosstrade.io/blog/chatgpt-to-ninjatrader-mcp-walkthrough

Informações sobre o projeto

Orçamento
30+ USD