Convert this Pine Script (only 8 lines of code) strategy to MQL5 as an EA

MQL5 Experts Conversão

Trabalho concluído

Tempo de execução 12 horas
Comentário do desenvolvedor
Thank you very much, sir :)
Comentário do cliente
Took a basic description of what I wanted, then proceeded to provide exactly what was asked. I'll be requesting personal work in the near future.

Termos de Referência

The following code is in Pine Script.  I need it converted to MQL5 to be applied as an EA.

strategy("Trend", overlay=true)

tim=input('160')

out1 = security(tickerid, tim, open)
out2 = security(tickerid, tim, close)

plot(out1,color=red)
plot(out2,color=green)

longCondition = crossover(out2,out1)
if (longCondition)
    strategy.entry("long", strategy.long)

shortCondition = crossunder(out2,out1)
if (shortCondition)
    strategy.entry("short", strategy.short)

Respondido

2
Desenvolvedor 2
Classificação
(192)
Projetos
232
30%
Arbitragem
1
100% / 0%
Expirado
9
4%
Livre
Publicou: 2 códigos
3
Desenvolvedor 3
Classificação
(206)
Projetos
333
35%
Arbitragem
66
12% / 58%
Expirado
87
26%
Livre
4
Desenvolvedor 4
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
Publicou: 1 código

Informações sobre o projeto

Orçamento
30 - 50 USD
Prazo
de 1 para 5 dias