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 天