Volume RSI from Pine-Script to MQL4

MQL4 Conversão

Trabalho concluído

Tempo de execução 4 dias
Comentário do desenvolvedor
Great employer! Highly recommend!
Comentário do cliente
Fast and good communication, exeactly what I wanted even with example-code how to use it!

Termos de Referência

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.


Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(852)
Projetos
1467
72%
Arbitragem
123
28% / 47%
Expirado
359
24%
Trabalhando
Publicou: 3 artigos
2
Desenvolvedor 2
Classificação
(807)
Projetos
1127
43%
Arbitragem
47
49% / 23%
Expirado
84
7%
Livre
3
Desenvolvedor 3
Classificação
(54)
Projetos
53
17%
Arbitragem
7
0% / 100%
Expirado
5
9%
Livre
4
Desenvolvedor 4
Classificação
(195)
Projetos
395
28%
Arbitragem
155
20% / 52%
Expirado
112
28%
Livre
5
Desenvolvedor 5
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
6
Desenvolvedor 6
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
7
Desenvolvedor 7
Classificação
(564)
Projetos
845
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Livre

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
de 1 para 2 dias