Volume RSI from Pine-Script to MQL4

MQL4 Conversión

Trabajo finalizado

Plazo de ejecución 4 días
Comentario del Ejecutor
Great employer! Highly recommend!
Comentario del Cliente
Fast and good communication, exeactly what I wanted even with example-code how to use it!

Tarea técnica

I want to use the "RSI ( 3, Vol:Volume)" Indikator from Tradingview in an Expert-Advisor coded in mql4.
The Sourcecode for the Tradingview-Indicator will be provided below.


study("Volume RSI", shorttitle="VoRSI")


periode  = input(14, title="Periode",minval=1)

VoRSI=rsi(volume,periode)

plot(VoRSI,color = #000000, linewidth=2)



Everything I want is a Function that returns the "Volume RSI" Value while having the Time-Period, Timeframe and Pair as an Input.
=> The RSI should always look for the closed-Prices to work with.

edit:
The Value should return the value from the last whole period. So it would be the value of the last closed candle (so the output only changes if the new candle is closed).

What I want to do with the Funktion:
I want to check if the Indicator broke through a level (like goes higher than 80) and stays there when candle closes - after that it comes back below that level (back to 79.99 or less) and closes in that zone.
So therefore it would be the best way to return the value of the last whole period since that value wont change anymore.

So it would behavie like I scrole back and look manualy for such a breakthrough. I added a picture of an breake-out I want to detect.


Should be like that:

double Volume_RSI (string Symbol,  Timeframe,  Time-Period)
{
//translated Code;

return ( Value betwen 0 and 100)
}

I already tried it myself but I can't get it working.
There is an built-in RSI funktion but it only accepts prices but no volumes and I cant get the expected results from my own translations (the values dont match up). My attempted Code can also be provided.


Archivos adjuntos:

Han respondido

1
Desarrollador 1
Evaluación
(852)
Proyectos
1467
72%
Arbitraje
123
28% / 47%
Caducado
359
24%
Trabaja
Ha publicado: 3 artículos
2
Desarrollador 2
Evaluación
(807)
Proyectos
1127
43%
Arbitraje
47
49% / 23%
Caducado
84
7%
Libre
3
Desarrollador 3
Evaluación
(54)
Proyectos
53
17%
Arbitraje
7
0% / 100%
Caducado
5
9%
Libre
4
Desarrollador 4
Evaluación
(195)
Proyectos
395
28%
Arbitraje
155
20% / 52%
Caducado
112
28%
Libre
5
Desarrollador 5
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
6
Desarrollador 6
Evaluación
(590)
Proyectos
789
71%
Arbitraje
9
33% / 33%
Caducado
22
3%
Libre
Ha publicado: 8 ejemplos
7
Desarrollador 7
Evaluación
(564)
Proyectos
845
73%
Arbitraje
15
53% / 13%
Caducado
193
23%
Libre

Información sobre el proyecto

Presupuesto
30 - 50 USD
Plazo límite de ejecución
de 1 a 2 día(s)