Pine script small indicator to MQL4

MQL4 Indikatoren Konvertierung

Auftrag beendet

Ausführungszeit 21 Stunden

Spezifikation

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

Bewerbungen

1
Entwickler 1
Bewertung
(635)
Projekte
1005
47%
Schlichtung
33
36% / 36%
Frist nicht eingehalten
99
10%
Arbeitet
Veröffentlicht: 6 Beispiele
2
Entwickler 2
Bewertung
(217)
Projekte
369
33%
Schlichtung
34
41% / 29%
Frist nicht eingehalten
108
29%
Frei
Veröffentlicht: 1 Beispiel
3
Entwickler 3
Bewertung
(268)
Projekte
602
34%
Schlichtung
64
20% / 58%
Frist nicht eingehalten
147
24%
Arbeitet
Veröffentlicht: 1 Artikel, 22 Beispiele
4
Entwickler 4
Bewertung
(611)
Projekte
711
33%
Schlichtung
45
49% / 42%
Frist nicht eingehalten
14
2%
Arbeitet
5
Entwickler 5
Bewertung
(17)
Projekte
21
14%
Schlichtung
8
38% / 38%
Frist nicht eingehalten
3
14%
Beschäftigt
6
Entwickler 6
Bewertung
(78)
Projekte
246
74%
Schlichtung
7
100% / 0%
Frist nicht eingehalten
1
0%
Frei
Veröffentlicht: 1 Artikel
7
Entwickler 7
Bewertung
(1)
Projekte
1
0%
Schlichtung
1
0% / 0%
Frist nicht eingehalten
0
Frei
8
Entwickler 8
Bewertung
(2672)
Projekte
3407
68%
Schlichtung
77
48% / 14%
Frist nicht eingehalten
342
10%
Frei
Veröffentlicht: 1 Beispiel
9
Entwickler 9
Bewertung
(252)
Projekte
462
26%
Schlichtung
139
20% / 60%
Frist nicht eingehalten
100
22%
Frei
10
Entwickler 10
Bewertung
(2)
Projekte
4
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei

Projektdetails

Budget
37+ USD
Ausführungsfristen
bis 2 Tag(e)