Translate the source code of an indicator from Pinescript to MT5

MQL5 Indicadores Forex

Trabalho concluído

Tempo de execução 1 hora
Comentário do cliente
Great job, Stephan! Fast Delivery!

Termos de Referência

I need the service of a coder who understands both MQL5 and Pinescript Languages. I already have the source code for the indicator I want to create in Pinescript. I only need it to be translated to MQL5 so that I can use it on MetatTrader 5. The indicator is a combination of Apirine Slow RSI and a moving average which plots the average values of the Slow RSI. I have the standalone Apirine Slow RSI indicator which I downloaded from the market section of MT5 but I've tried adding the moving average to it on my charts but the plotting of the moving average isn't consistent across different zoom levels. So I thought adding the moving average in the source code should solve the problem.

NB: If possible, write the code for the moving average in such a way that it has three modes - Simple, Exponential and Smoothed.

Below is the Pinescript code for the indicator (I call it Trend Catcher) I want to create:

//@version=4
study("Trend Catcher", shorttitle="Trend_Catcher", overlay=false)

// Input variables
smaPeriod = input(20, title="SMA Period", minval=1)
oversoldLevel = input(20, title="Oversold Level", minval=0, maxval=100)
midLevel = input(50, title="Middle Level", minval=0, maxval=100)
overboughtLevel = input(80, title="Overbought Level", minval=0, maxval=100)

// Slow RSI Calculation
smooth = input(14, title="RSI Period Length", minval=1, maxval=100)
price = close
fn(src, length) =>
    MA_s = 0.0
    MA_s := (src + nz(MA_s[1]) * (length - 1)) / length
    MA_s

r1 = ema(price, 5)
r2 = iff(price > r1, price - r1, 0)
r3 = iff(price < r1, r1 - price, 0)
r4 = fn(r2, smooth)
r5 = fn(r3, smooth)
slowRSI = iff(r5 == 0, 100, 100 - (100 / (1 + (r4 / r5))))

// Simple Moving Average Calculation
sma = sma(slowRSI, smaPeriod)

// Plotting the indicators
plot(slowRSI, title="Slow RSI", color=color.blue, linewidth=1)
plot(sma, title="SMA", color=color.red, linewidth=1, style=plot.style_circles)

// Plotting the Oversold, Middle, and Overbought levels
hline(oversoldLevel, "Oversold", color=color.green)
hline(midLevel, "Middle", color=color.orange)
hline(overboughtLevel, "Overbought", color=color.red)



Respondido

1
Desenvolvedor 1
Classificação
(132)
Projetos
178
39%
Arbitragem
4
25% / 50%
Expirado
14
8%
Livre
Pedidos semelhantes
to compile all the suitable markets for buy and place a buy for the shortest timeframe and place a sell for also a shortest timeframe it should work with all brokers and can automatically place a trade as long as its connected to the internet it should inform where the contracts are placed and for how long
I need an experienced Pine Script v5 developer to help finalize and package a custom strategy that has already been partially converted from TradeStation EasyLanguage. The core logic uses four key technical indicators: MACD crossover Chaikin Oscillator (volume-based) Directional Movement Index (DMI +/- crossover) Simple Moving Averages (SMA) Project Scope: 1. Fix and clean the current Pine Script code 2. Implement
XAUUSD Scalper M1 30 - 100 USD
I want XAUUSD scalping bot it works on strong support and resistance.Put pending BUY SELL orders at S&R levels. Adding some basic inputs TP,SL,Trailing.If you have similar EA share demo file in personal chat.if results satisfy with my expectations i will proceed with same EA any modifications if required
ATAS trading bot. 40 - 70 USD
Hello expert developer i am interested in an ATAS trading bot. i already know what I want it to do. What are your terms regarding confidentiality? After I have hired you for a project, does the final product remain solely mine, and will it not be replicated? I am open to any suggestions on how it can be improved. or any limitation you may notice i'll be looking forward to expert developer only to work with thanks
Project Description: I am looking for a highly skilled MQL5 developer to create a robust solution for a persistent TLS handshake failure. My Expert Advisor (EA) needs to connect to a secure WebSocket server ( wss:// ) hosted on Railway.app or any other online websocket provider, but the connection consistently fails during the security negotiation phase. Ideal Candidate Skills: Deep expertise in MQL5 programming
I need an experienced developer to convert my MT4 EA based on the Super Trend indicator to MT5. The new EA should also include additional features. Essential modifications: - Incorporate additional indicators: Moving Average and PSAR. - Add custom alerts: Push and sound notifications. - Implement money management rules
I have a custom EA that I need optimized. I need it optimized for many pairs and the set files sent to me. The EA was created a few months ago, it works, but I need it optimized for it to run better
i am looking for an indicator that gives buy sell signal by placing arrows on the chart, signals must not repaint or be placed with an offset, i want it to be accurate enough so i can trade from signal to signal and actually make profit, do any one have a strategy and skill to create such an indicator, and also it is to mql5, ( Important is, It must have No repainting and No offset ), if you know it is something you
hello freelancers i need some one with a profitable ea for gold and dj30 i need the ea to be a scalping ea which places orders with sl and tp of 200 points for each trade and have a winning rate of more than 70 percent. if you have it already please apply for this
Hello, I m looking for experienced developer to code me indicator Market structure all in one in my EA MONEYPAL, to open trade on FVG separated by fractal signals.Thank you Regards

Informações sobre o projeto

Orçamento
30+ USD
Desenvolvedor
27 USD
Prazo
de 1 para 3 dias