PineScript to Mql5

MQL5 Integración

Tarea técnica

Hi, I am looking for someone to help me to find or create the following indicator from TradingView to Mql5.

The indicator is Relative Volatility Index, it is necessary that it comes out as in tradingview, that is to say with its SMA and with the modification of periods.

I copy from the TradingView source code:

//@version=5
indicator(title="Relative Volatility Index", shorttitle="RVI", format=format.price, precision=2, timeframe="", timeframe_gaps=true)
length = input.int(10, minval=1)
offset = input.int(0, "Offset", minval = -500, maxval = 500)
maTypeInput = input.string("SMA", title="MA Type", options=["SMA", "Bollinger Bands", "EMA", "SMMA (RMA)", "WMA", "VWMA"], group="MA Settings")
maLengthInput = input.int(14, title="MA Length", group="MA Settings")
bbMultInput = input.float(2.0, minval=0.001, maxval=50, title="BB StdDev", group="MA Settings")
src = close
len = 14
stddev = ta.stdev(src, length)
upper = ta.ema(ta.change(src) <= 0 ? 0 : stddev, len)
lower = ta.ema(ta.change(src) > 0 ? 0 : stddev, len)
rvi = upper / (upper + lower) * 100
ma(source, length, type) =>
    switch type
        "SMA" => [ta.sma(source, length), na, na]
        "Bollinger Bands" =>
            [middleValue, highValue, lowValue] = ta.bb(source, length, bbMultInput)
            [middleValue, highValue, lowValue]
        "EMA" => [ta.ema(source, length), na, na]
        "SMMA (RMA)" => [ta.rma(source, length), na, na]
        "WMA" => [ta.wma(source, length), na, na]
        "VWMA" => [ta.vwma(source, length), na, na]

[rviMA,highValue,lowValue] = ma(rvi, maLengthInput, maTypeInput)

h0 = hline(80, "Upper Band", color=#787B86)
hline(50, "Middle Band", color=color.new(#787B86, 50))
h1 = hline(20, "Lower Band", color=#787B86)
fill(h0, h1, color=color.rgb(126, 87, 194, 90), title="Background")

plot(rvi, title="RVI", color=#7E57C2, offset = offset)
plot(rviMA, "RVI-based MA", color=color.yellow, offset = offset)

bbUpper = plot(highValue, title="Upper Bollinger Band", color=color.green)
bbLower = plot(lowValue, title="Lower Bollinger Band", color=color.green)
fill(bbUpper, bbLower, color = color.new(color.green, 90), title="Bollinger Bands Background Fill")


Han respondido

1
Desarrollador 1
Evaluación
(184)
Proyectos
317
24%
Arbitraje
23
35% / 13%
Caducado
23
7%
Libre
Ha publicado: 3 ejemplos
2
Desarrollador 2
Evaluación
(851)
Proyectos
1459
72%
Arbitraje
122
29% / 48%
Caducado
356
24%
Trabaja
Ha publicado: 3 artículos
3
Desarrollador 3
Evaluación
(298)
Proyectos
477
40%
Arbitraje
105
40% / 24%
Caducado
81
17%
Trabajando
Ha publicado: 2 ejemplos
4
Desarrollador 4
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre

Información sobre el proyecto

Presupuesto
30 - 50 USD