Volume RSI from Pine-Script to MQL4

MQL4 转化中

工作已完成

执行时间4 天
员工反馈
Great employer! Highly recommend!
客户反馈
Fast and good communication, exeactly what I wanted even with example-code how to use it!

指定

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.


附加的文件:

反馈

1
开发者 1
等级
(852)
项目
1467
72%
仲裁
123
28% / 47%
逾期
359
24%
工作中
发布者: 3 文章
2
开发者 2
等级
(807)
项目
1127
43%
仲裁
47
49% / 23%
逾期
84
7%
空闲
3
开发者 3
等级
(54)
项目
53
17%
仲裁
7
0% / 100%
逾期
5
9%
空闲
4
开发者 4
等级
(195)
项目
395
28%
仲裁
155
20% / 52%
逾期
112
28%
空闲
5
开发者 5
等级
(574)
项目
945
47%
仲裁
309
58% / 27%
逾期
125
13%
空闲
6
开发者 6
等级
(590)
项目
789
71%
仲裁
9
33% / 33%
逾期
22
3%
空闲
发布者: 8 代码
7
开发者 7
等级
(564)
项目
845
73%
仲裁
15
53% / 13%
逾期
193
23%
空闲

项目信息

预算
30 - 50 USD
截止日期
从 1 到 2 天