Need to convert script from tradingview to MQL4

MQL4 Indicadores

Trabajo finalizado

Plazo de ejecución 5 días
Comentario del Cliente
Excellent

Tarea técnica

Need help building indicators based on a TradingView Script.

  • Indicator must be error free.
  • Indicator must give the exact same results compared to TradingView indicator.
  • Indicator must have source code ( mq4 file)

Script source code: 

//@version=3
study(title="Ehlers-Smoothed Stochastic RSI [Krypt]", shorttitle="ES Stoch RSI [Krypt]", precision=1)

PI = 3.14159265359

drop1st(src) =>
    x = na
    x := na(src[1]) ? na : src

xlowest(src, len) =>
    x = src
    for i = 1 to len - 1
        v = src[i]
        if (na(v))
            break
        x := min(x, v)
    x

xhighest(src, len) =>
    x = src
    for i = 1 to len - 1
        v = src[i]
        if (na(v))
            break
        x := max(x, v)
    x

xstoch(c, h, l, len) =>
    xlow = xlowest(l, len)
    xhigh = xhighest(h, len) 
    100 * (c - xlow) / (xhigh - xlow)

Stochastic(c, h, l, length) =>
    rawsig = xstoch(c, h, l, length)
    min(max(rawsig, 0.0), 100.0)

xrma(src, len) =>
    sum = na
    sum := (src + (len - 1) * nz(sum[1], src)) / len

xrsi(src, len) =>
    msig = nz(change(src, 1), 0.0)
    up = xrma(max(msig, 0.0), len)
    dn = xrma(max(-msig, 0.0), len)
    rs = up / dn
    100.0 - 100.0 / (1.0 + rs)

EhlersSuperSmoother(src, lower) =>
        a1 = exp(-PI * sqrt(2) / lower)
        coeff2 = 2 * a1 * cos(sqrt(2) * PI / lower)
        coeff3 = -pow(a1, 2)
        coeff1 = (1 - coeff2 - coeff3) / 2
        filt = na
        filt := nz(coeff1 * (src + nz(src[1], src)) + coeff2 * filt[1] + coeff3 * filt[2], src)

smoothK = input(10, minval=1, title="K")
smoothD = input(3, minval=1, title="D")
lengthRSI = input(14, minval=1, title="RSI Length")
lengthStoch = input(14, minval=1, title="Stochastic Length")
showsignals = input(true, title="Buy/Sell Signals")
src = input(close, type=source, title="Source")

ob = 80
os = 20
midpoint = 50

price = log(drop1st(src))
rsi1 = xrsi(price, lengthRSI)
rawsig = Stochastic(rsi1, rsi1, rsi1, lengthStoch)
sig = EhlersSuperSmoother(rawsig, smoothK)
ma = sma(sig, smoothD)

plot(sig, color=#0094ff, title="K", transp=0)
plot(ma, color=#ff6a00, title="D", transp=0)
lineOB = hline(ob, title="Upper Band", color=#c0c0c0)
lineOS = hline(os, title="Lower Band", color=#c0c0c0)
fill(lineOB, lineOS, color=purple, title="Background")

// Buy/Sell Signals

// use curvature information to filter out some false positives
mm1 = change(change(ma, 1), 1)
mm2 = change(change(ma, 2), 2)
ms1 = change(change(sig, 1), 1)
ms2 = change(change(sig, 2), 2)

sellsignals = showsignals and (mm1 + ms1 < 0 and mm2 + ms2 < 0) and crossunder(sig, ma) and sig[1] > midpoint
buysignals = showsignals and (mm1 + ms1 > 0 and mm2 + ms2 > 0) and crossover(sig, ma) and sig[1] < midpoint

ploff = 4
plot(buysignals ? sig[1] - ploff : na, style=circles, color=#008fff, linewidth=3, title="Buy Signal", transp=0)
plot(sellsignals ? sig[1] + ploff : na, style=circles, color=#ff0000, linewidth=3, title="Sell Signal", transp=0)


Han respondido

1
Desarrollador 1
Evaluación
(1117)
Proyectos
1419
62%
Arbitraje
21
57% / 10%
Caducado
43
3%
Trabaja
2
Desarrollador 2
Evaluación
(501)
Proyectos
752
63%
Arbitraje
33
27% / 45%
Caducado
23
3%
Libre
3
Desarrollador 3
Evaluación
(555)
Proyectos
922
48%
Arbitraje
300
59% / 25%
Caducado
123
13%
Trabajando
4
Desarrollador 4
Evaluación
(35)
Proyectos
73
51%
Arbitraje
12
33% / 33%
Caducado
14
19%
Libre
5
Desarrollador 5
Evaluación
(195)
Proyectos
395
28%
Arbitraje
155
20% / 52%
Caducado
112
28%
Libre
Solicitudes similares
Hello everybody I would like to modify an existing indicator. I want to create a Dashboard that will display alerts created by my personal indicator called TREND. It will have to display alerts created on several timeframes and for several currencies. Each currency will need to be able to modify its own TREND indicator settings. The TREND indicator settings will be accessible by double-clicking on the currency name
I want to convert my tradingview indicator to MT4. I need a developer who can get it completed under the course of 24-48hrs. And I need some who is more experience at this level. Thank you
I need a indicator that will be based on RSI combined with MACD and algorithm, when I plug the indicator it must be able to give me signal of buy or sell and entry point and take profit 1 2 3 and stop loss if is a buy it must be blue arrow if is a sellthe arrow must be red
Hello, I am searching for a reliable mt4 programmer who can have a look at my existing mt4 indicator, I'm curious of having a specialist in coding to check the entire code and highlight any errors or bugs that might be affecting this indicator from not having optimal performance, keep in mind that the algorithm code will be shared with you in comment section, The purpose of this job is just to modify this indicator
I want to build an indicator or EA that calculates the statistics on an instrument, and show the statistical distribution of the calculated sample statistics. The statistics will be based on Open high low close of a candle. I want the right to the EA and the source code I want to be able to change to different timeframes and get the statistics on those time frame. When i apply the indicator to intraday timeframe, i
Pvi 30 - 200 USD
pips volume indicator between 1 to 10k counting indicator. on only specified periods of open close low hi with selected time period m1 m5 m15 etc etc with level can customize by users. changes color after each 25 percent of pips count means u set 1000 pips it must first change its color after 25 percent than 50 than 75 first the final color should be the signal of buy sell user can select the levels colors. i want to
i need someone to do a reverse engineer and decompile the indicator with the help of file provided. there are some more projects in the pipeline. The indicator should be capable of analyzing real-time market data and generating accurate trading signals for different financial instruments listed on the
Indicator Functionality: Display 4 lights on the top right corner of the chart. Each light reflects a specific timeframe and EMA condition: Light 1 (1H timeframe): Red: Close price below both EMA 12 and EMA 16. Green: Close price above both EMA 12 and EMA 16. Light 2 (15M timeframe): Red: Close price below both EMA 12 and EMA 16. Green: Close price above both EMA 12 and EMA 16. Light 3 (1M timeframe): Red: Close
I need to correct/modify EA based on Martingale strategy which include no. of modules, manual lot size, Martingale factor, TP, SL, Cutt-off SL, Balance DD limit, Enable new orders, Reverse orders, Equity Rise, News filter, Time filter, Alert, Chart Panel etc,. MA crossover logic to be added. Details can be discussed on personal basis. Base source files shall be submitted by freelancer. Existing EA can be shared which
I have an Indicator that buffers values I can see, but those are not working with EA. I needed to be ready for those buffer values that would work with an EA. Thank you

Información sobre el proyecto

Presupuesto
30 - 50 USD
Para el ejecutor
27 - 45 USD