Convert TradingView simple indicator to MT5 - source code below

Trabajo finalizado

Plazo de ejecución 4 días
Comentario del Ejecutor
Very good customer, I highly recommend him

Tarea técnica

I just need this relative volatility index  indicator  on TradingView  converted to an MT5 indicator.  The code is below

Project shouldnt take very long.  

Source code is below.    Please only apply if you can get this done in 1 day or less

THE ONLY MA VALUE NEEDED IS   SMA  -   I DONT NEED THE REST  (BOLLINGER, EMA, VMA, ETC)

will need there to be  UPPER BAND and LOWER BAND lines  that can be configured to set values like  70/30

the final result should look something like  this


 


and   here are settings from tradingview

 




//@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
(86)
Proyectos
118
69%
Arbitraje
5
80% / 0%
Caducado
11
9%
Trabaja
2
Desarrollador 2
Evaluación
(268)
Proyectos
396
27%
Arbitraje
38
39% / 50%
Caducado
1
0%
Libre
3
Desarrollador 3
Evaluación
(264)
Proyectos
593
35%
Arbitraje
64
20% / 58%
Caducado
147
25%
Libre
Ha publicado: 1 artículo, 22 ejemplos
4
Desarrollador 4
Evaluación
(22)
Proyectos
24
8%
Arbitraje
0
Caducado
0
Libre
5
Desarrollador 5
Evaluación
(574)
Proyectos
945
47%
Arbitraje
309
58% / 27%
Caducado
125
13%
Libre
6
Desarrollador 6
Evaluación
(2)
Proyectos
4
0%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Buen día. Busco un desarrollador para agregar sistema de Martingala a un Bot de MT4, sin poseer el código fuente, solo el archivo EX4. Mas detalles en mensaje privado, agradezco la atención prestada
I need an MQL5 indicator that identifies reversals without repainting or placing signals with an offset. The goal is to minimize lag and reduce whipsaw trades. Desired results are similar to the attached image. Requirements: - No repainting - No signal offset - Emphasis on reducing lag - MQL5 compatible - Clear, concise code If you have the expertise to create a reliable, high-performance indicator, let's discuss
want a highly profitable EA; price is not an issue, as long as you can prove it and send me a demo for me to test. You need to prove yourself first. The EA needs a year of stable backtesting
I’m looking for an experienced MQL5 developer to build TWO MT5 custom indicators that detect multi-condition M30 trade setups and send Telegram alerts before trade execution . This project requires strict close-based logic , multi-indicator buffer processing , and non-repainting behavior . HIGH-LEVEL REQUIREMENTS Indicators must evaluate signals from M30 only All conditions are checked only after candle close Logic
hey developers its a fix 30$ job because it takes less than 5 minutes, i only need a source code for a progress bar and gauge bar, i want to impellent in my code. i have a for loop that i want to keep update it with these 2 objects. i mentioned the requirement in each photo please check it. its super easy and fast for someone who already done it, if you didn't do it before don't bother to request . job will be
1. The idea of the trading system is as follows : market entries are performed when MACD's main and signal lines intersect in the current trend direction . 2. Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the current EMA value is greater than the previous one, the trend is seen as growing (ema_current > ema_previous). Alternatively, if current EMA is
I’m looking for a highly profitable, robust EA for MT5. Targets 3% profit/month with max 1% drawdown Trades 1 signal pair 1+ year stable backtesting "Retard proof" execution Price isn't an issue. Must provide demo for testing + proof of performance Requirements: Demo version for evaluation Source code (.mq5) Serious developers only Only serious developer
Tôi muốn EA siêu lợi nhuận, giá cả không thành vấn đề, chỉ cần bạn có thể chứng minh được, và gửi tôi bản demo để tôi kiểm tra bạn hãy chứng minh bản thân mình trước. EA cần backtest 1 năm hoạt động ổn định
Im looking for an EA with Code. An EA that can capture big impulsive move on any instrument. Open trades only with multiple confirmation and a very high probability setup intraday or swing trading That can do top down/multi time frame analysis like D1 H4 H1 and then implement the trade on shorter time frame to catch the moves from the start. As i want to catch only the impulsive moves so there must be a Volume
Hi I’m looking for an experienced developer to build an ea,the strategy is based on trading XAU and possibly BTC that can execute trades on 1 and 5 minute timeframes using a combination of EMA’s, stochastic Oscillators and a 4-6 max order grid with loss cap if the opening position goes into drawdown. I would like someone experienced who could also add value and implement there ideas as I have no programming

Información sobre el proyecto

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