Convert from trandingview pine script to mql5

MQL5 Göstergeler Dönüştürme

İş tamamlandı

Tamamlanma süresi: 19 saat
Müşteri tarafından geri bildirim
I am very satisfied with the work, I really liked the quickness and professionalism, the code was very well written and described, sincerely very happy with the result.
Geliştirici tarafından geri bildirim
very good customer

Şartname

convert the next code to mql5 without error on execution, is a relative volatility index, but the parameters should be editables.

//@version=4

study(title="Relative Volatility Index - Flexible", shorttitle="RVI", format=format.price, precision=2, resolution="")

length = input(10, minval=1, title="STDDEV Period")

src = input(close, title="Source")

len = input(14, minval=1,  title="EMA Period")

stddev = stdev(src, length)

upper = ema(change(src) <= 0 ? 0 : stddev, len)

lower = ema(change(src) > 0 ? 0 : stddev, len)

rvi = upper / (upper + lower) * 100

h0 = hline(80, "Upper Band", color=#C0C0C0)

h1 = hline(20, "Lower Band", color=#C0C0C0)

h2 = hline(50, "Center Line", color=#C0C0C0)

fill(h0, h1, color=#996A15, title="Background")

offset = input(0, "Offset", type = input.integer, minval = -500, maxval = 500)

plot(rvi, title="RVI", color=#008000, offset = offset)

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(132)
Projeler
178
39%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
14
8%
Serbest
2
Geliştirici 2
Derecelendirme
(412)
Projeler
543
75%
Arabuluculuk
9
44% / 0%
Süresi dolmuş
24
4%
Serbest

Proje bilgisi

Bütçe
30+ USD