Tâche terminée
Temps d'exécution 21 heures
Spécifications
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
Répondu
1
Évaluation
Projets
985
46%
Arbitrage
33
36%
/
36%
En retard
98
10%
Travail
Publié : 6 codes
2
Évaluation
Projets
364
32%
Arbitrage
34
41%
/
29%
En retard
108
30%
Gratuit
Publié : 1 code
3
Évaluation
Projets
597
35%
Arbitrage
64
20%
/
58%
En retard
147
25%
Gratuit
Publié : 1 article, 22 codes
4
Évaluation
Projets
640
33%
Arbitrage
41
41%
/
46%
En retard
11
2%
Chargé
5
Évaluation
Projets
20
10%
Arbitrage
8
38%
/
38%
En retard
3
15%
Travail
6
Évaluation
Projets
243
74%
Arbitrage
7
100%
/
0%
En retard
1
0%
Gratuit
Publié : 1 article
7
Évaluation
Projets
1
0%
Arbitrage
1
0%
/
0%
En retard
0
Gratuit
8
Évaluation
Projets
3362
68%
Arbitrage
77
48%
/
14%
En retard
342
10%
Gratuit
Publié : 1 code
9
Évaluation
Projets
460
26%
Arbitrage
140
20%
/
59%
En retard
100
22%
Travail
10
Évaluation
Projets
4
0%
Arbitrage
0
En retard
0
Gratuit
Informations sur le projet
Budget
37+ USD
Délais
à 2 jour(s)