Pine script small indicator to MQL4

MQL4 Indicatori In conversione

Lavoro terminato

Tempo di esecuzione 21 ore

Specifiche

i need to convert a TradingView (PineScript) indicator to MQL4 
name of the indicator is "Donchian Trend Ribbon"
the source code will be below. 
visuals are important. so make sure the developed indicator will have the visuals 

all ordinal input should be represented. 

General conditions

write clear and well commented code. 

delivery should be within 2 days.
deliveries are the indicator ex4 and the developed source code mq4. 


the pine source code:
//@version=4
study("Donchian Trend Ribbon", precision = 0)
dlen = input(defval = 20, title = "Donchian Channel Period", minval = 10)

dchannel(len)=>
    float hh = highest(len)
    float ll = lowest(len)
    
    int trend = 0
    trend := close > hh[1] ? 1 : close < ll[1] ? -1 : nz(trend[1])
    
dchannelalt(len, maintrend)=>
    float hh = highest(len)
    float ll = lowest(len)
    
    int trend = 0
    trend := close > hh[1] ? 1 : close < ll[1] ? -1 : nz(trend[1])
    maintrend == 1  ? trend == 1  ? #00FF00ff :  #00FF009f :
     maintrend == -1 ? trend == -1 ? #FF0000ff :  #FF00009f :
     na

maintrend = dchannel(dlen)

plot( 5, color = dchannelalt(dlen - 0, maintrend), style = plot.style_columns, histbase= 0)
plot(10, color = dchannelalt(dlen - 1, maintrend), style = plot.style_columns, histbase= 5)
plot(15, color = dchannelalt(dlen - 2, maintrend), style = plot.style_columns, histbase=10)
plot(20, color = dchannelalt(dlen - 3, maintrend), style = plot.style_columns, histbase=15)
plot(25, color = dchannelalt(dlen - 4, maintrend), style = plot.style_columns, histbase=20)
plot(30, color = dchannelalt(dlen - 5, maintrend), style = plot.style_columns, histbase=25)
plot(35, color = dchannelalt(dlen - 6, maintrend), style = plot.style_columns, histbase=30)
plot(40, color = dchannelalt(dlen - 7, maintrend), style = plot.style_columns, histbase=35)
plot(45, color = dchannelalt(dlen - 8, maintrend), style = plot.style_columns, histbase=40)
plot(50, color = dchannelalt(dlen - 9, maintrend), style = plot.style_columns, histbase=45)
//end

Con risposta

1
Sviluppatore 1
Valutazioni
(626)
Progetti
985
46%
Arbitraggio
33
36% / 36%
In ritardo
98
10%
In elaborazione
Pubblicati: 6 codici
2
Sviluppatore 2
Valutazioni
(213)
Progetti
364
32%
Arbitraggio
34
41% / 29%
In ritardo
108
30%
Gratuito
Pubblicati: 1 codice
3
Sviluppatore 3
Valutazioni
(265)
Progetti
597
35%
Arbitraggio
64
20% / 58%
In ritardo
147
25%
Gratuito
Pubblicati: 1 articolo, 22 codici
4
Sviluppatore 4
Valutazioni
(553)
Progetti
640
33%
Arbitraggio
41
41% / 46%
In ritardo
11
2%
Caricato
5
Sviluppatore 5
Valutazioni
(16)
Progetti
20
10%
Arbitraggio
8
38% / 38%
In ritardo
3
15%
In elaborazione
6
Sviluppatore 6
Valutazioni
(77)
Progetti
243
74%
Arbitraggio
7
100% / 0%
In ritardo
1
0%
Gratuito
Pubblicati: 1 articolo
7
Sviluppatore 7
Valutazioni
(1)
Progetti
1
0%
Arbitraggio
1
0% / 0%
In ritardo
0
Gratuito
8
Sviluppatore 8
Valutazioni
(2645)
Progetti
3362
68%
Arbitraggio
77
48% / 14%
In ritardo
342
10%
Gratuito
Pubblicati: 1 codice
9
Sviluppatore 9
Valutazioni
(250)
Progetti
460
26%
Arbitraggio
140
20% / 59%
In ritardo
100
22%
In elaborazione
10
Sviluppatore 10
Valutazioni
(2)
Progetti
4
0%
Arbitraggio
0
In ritardo
0
Gratuito

Informazioni sul progetto

Budget
37+ USD
Scadenze
a 2 giorno(i)