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

Tarea técnica

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.

Han respondido

1
Desarrollador 1
Evaluación
(206)
Proyectos
333
35%
Arbitraje
66
12% / 58%
Caducado
87
26%
Libre
2
Desarrollador 2
Evaluación
(119)
Proyectos
127
41%
Arbitraje
3
33% / 67%
Caducado
0
Libre
3
Desarrollador 3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
I need a AI signal generating bot for forex trading that use the latest ai technology to track real time forex market, analyse and give signals. The bot should operate such that when i put it in a chart it will analyse the market, after several minutes it will display whether the trade is buying or selling. It should display the one minute, five minute,15minute, 30 minute, one hour, 4 hours and daily time frame
step by step and structure this into a full IEEE 830 / ISO/IEC/IEEE 29148 style Requirements Specification. This format will include: Introduction System Overview Functional and Performance Requirements Traceability Matrix (linking requirements to test cases) Verification and Validation Compliance Standards 1. Introduction 1.1 Purpose The purpose of this document is to define the technical requirements for the
//+------------------------------------------------------------------+ //| XAUUSD Ultimate Institutional EA | //| Features: | //| - True swing-based market structure | //| - BOS sniper entries on M5 | //| - Liquidity sweep filter | //| - Partial TP + breakeven | //| - Visual BOS, swings, liquidity
// Add this to your EA after ExportState() function void SendToBase44(const string state, const string dir, double entry, double sl, double tp) { string url = " https://preview-sandbox--ee0a32a725b788974de435e8cef40b7a.base44.app/api/functions/receiveEAState "; string headers = "Content-Type: application/json\r\n"; string json = "{" "\"symbol\":\""+_Symbol+"\","
1.Sinyal Perdagangan : Sinyal beli: garis MACD utama memotong garis sinyal ke atas (macd_current>signal_current && macd_previous<signal_previous). Sinyal jual: garis MACD utama memotong garis sinyal ke bawah (macd_current<signal_current && macd_previous>signal_previous). Gambar di bawah menunjukkan kasus beli dan jual. 2. Posisi ditutup pada sinyal yang berlawanan: Posisi beli ditutup pada sinyal jual, dan posisi

Información sobre el proyecto

Presupuesto
30+ USD