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

MQL5 전문가 전환

작업 종료됨

실행 시간 12 시간
피고용인의 피드백
Thank you very much, sir :)
고객의 피드백
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.

명시

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)

응답함

2
개발자 2
등급
(192)
프로젝트
232
30%
중재
1
100% / 0%
기한 초과
9
4%
무료
게재됨: 2 코드
3
개발자 3
등급
(206)
프로젝트
333
35%
중재
66
12% / 58%
기한 초과
87
26%
무료
4
개발자 4
등급
(94)
프로젝트
148
59%
중재
16
38% / 13%
기한 초과
25
17%
무료
게재됨: 1 코드

프로젝트 정보

예산
30 - 50 USD
기한
에서 1  5 일