Translate the source code of an indicator from Pinescript to MT5

MQL5 Göstergeler Forex

İş tamamlandı

Tamamlanma süresi: 1 saat
Müşteri tarafından geri bildirim
Great job, Stephan! Fast Delivery!

İş Gereklilikleri

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)



Yanıtlandı

1
Geliştirici 1
Derecelendirme
(126)
Projeler
160
36%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
13
8%
Ücretsiz
Benzer siparişler
MT4 to Telegram 30 - 50 USD
Hello, I want to add a system send messages to Telegram Send a message with a specific picture and details of the new signal When closing with a profit, send the details of the closing and profit with a specific picture And close with a loss and send a specific picture, in addition to the details of the closure and the amount of the loss
Hi Dear developpers, I've an EA that was working very well with the previous versions of MT4. But since, they have updated their platforms, my EA it's not working anymore. I've tried to use those old MT4 versions but there are just temporary. So i've decided to updated this EA so i can use it on the newest version of MT4 (1420) and those who will come after it. I also want to implement new inputs in it. I also want
I will like the indicator to send notification to mobile when the indicator changes color and is increase upward when positive and decreasing downwards when negative including fisplaying arrows on the chart ,red for negative and green for positive
Hey greetings My pleasure to met you all .I would like to convert a public tradingview pinescript indicator to MT5 Expert Advisor based on my. Requirements/specification.Kindly bid and let discuss about the project
Please convert the Pine Script below into MQL4 Indicator: // @version= 5 // This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/ // © KivancOzbilgic //created by: @Anil_Ozeksi //developer: ANIL ÖZEKŞİ //author: @kivancozbilgic strategy ( 'Twin Optimized Trend Tracker' , 'TOTT' , overlay = true ) src = input ( close , title = 'Source' ) length = input.int ( 40
A robot 30 - 65 USD
Hi I am looking for developer who can make me Mt4 Ea i have 2types of analysis methods i want to add and also want to attach image with Ea like when i attach my to any currency pair the chart changes to my picture Of robot which i attached to my Ea and for proper all settings i want add i will tell u message me
hi.. i have a pin script (TV) but some lines in the code needs to be fixed,,, i will attach the file thanks very much in advance, Also there will be more project in front, so I need a very dedicated developer
I need an Expert Advisor that can read trade signals from a Telegram Channel and then execute those trades. My telegram bot has admin access to the Telegram Channel The EA needs the following functionality: Position Size: Auto: + Have fixed lot size set in settings. + Have lot size by % of account (set in settings) Manual: + From lot size set in trade signals message. + From lot size by % of account from trade
The ZONE RECOVERY/HEDGING STRATEGY will be on a timeframe where each strategy is independent and pending orders should be placed at the high and low of the candlestick. If it is a buy, then the pending order at the high of the candlestick will be triggered, and if it is a sell, then the pending order at the low of the candlestick will be triggered. If the market breaks the high of the candlestick, then the pending
Hi I have a script in Tradingview that looks good which shows the buy and sell automation. I wanted to see if that can be used in ninja Trader so I converted it for Ninja Trader. But it is not triggering the buy or sell trade like it shows in the tradingview script. Please let me know if you can help me with the script that will work in Ninja Trader just like the one in Trading View. I have the buy and sell signals

Proje bilgisi

Bütçe
30+ USD
Geliştirici için
27 USD
Son teslim tarihi
from 1 to 3 gün