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

MQL5 Uzmanlar Dönüştürme

İş tamamlandı

Tamamlanma süresi: 12 saat
Geliştirici tarafından geri bildirim
Thank you very much, sir :)
Müşteri tarafından geri bildirim
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.

Şartname

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)

Yanıtlandı

2
Geliştirici 2
Derecelendirme
(192)
Projeler
232
30%
Arabuluculuk
1
100% / 0%
Süresi dolmuş
9
4%
Serbest
Yayınlandı: 2 kod
3
Geliştirici 3
Derecelendirme
(206)
Projeler
333
35%
Arabuluculuk
66
12% / 58%
Süresi dolmuş
87
26%
Serbest
4
Geliştirici 4
Derecelendirme
(94)
Projeler
148
59%
Arabuluculuk
16
38% / 13%
Süresi dolmuş
25
17%
Serbest
Yayınlandı: 1 kod

Proje bilgisi

Bütçe
30 - 50 USD
Son teslim tarihi
from 1 to 5 gün