Trabalho concluído
Tempo de execução 21 horas
Termos de Referência
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
Respondido
1
Classificação
Projetos
1008
47%
Arbitragem
33
36%
/
36%
Expirado
99
10%
Trabalhando
Publicou: 6 códigos
2
Classificação
Projetos
369
33%
Arbitragem
34
41%
/
29%
Expirado
108
29%
Livre
Publicou: 1 código
3
Classificação
Projetos
603
34%
Arbitragem
65
22%
/
57%
Expirado
146
24%
Trabalhando
Publicou: 1 artigo, 22 códigos
4
Classificação
Projetos
742
34%
Arbitragem
49
53%
/
39%
Expirado
14
2%
Carregado
5
Classificação
Projetos
22
18%
Arbitragem
9
33%
/
44%
Expirado
3
14%
Trabalhando
Publicou: 1 código
6
Classificação
Projetos
248
74%
Arbitragem
7
100%
/
0%
Expirado
1
0%
Livre
Publicou: 2 artigos, 1 código
7
Classificação
Projetos
1
0%
Arbitragem
1
0%
/
0%
Expirado
0
Livre
8
Classificação
Projetos
3423
68%
Arbitragem
78
47%
/
14%
Expirado
343
10%
Trabalhando
Publicou: 1 código
9
Classificação
Projetos
462
26%
Arbitragem
139
20%
/
60%
Expirado
100
22%
Livre
10
Classificação
Projetos
4
0%
Arbitragem
0
Expirado
0
Livre
Informações sobre o projeto
Orçamento
37+ USD
Prazo
para 2 dias