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

MQL5 Experts Converting

Job finished

Execution time 12 hours
Feedback from employee
Thank you very much, sir :)
Feedback from customer
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.

Specification

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)

Responded

2
Developer 2
Rating
(192)
Projects
232
30%
Arbitration
1
100% / 0%
Overdue
9
4%
Free
Published: 2 codes
3
Developer 3
Rating
(204)
Projects
330
35%
Arbitration
64
13% / 56%
Overdue
86
26%
Working
4
Developer 4
Rating
(94)
Projects
148
59%
Arbitration
16
38% / 13%
Overdue
25
17%
Free
Published: 1 code

Project information

Budget
30 - 50 USD
For the developer
27 - 45 USD
Deadline
from 1 to 5 day(s)