I need to convert a TRADING VIEW PINE CODE to MQL5. and create an expert based on it

İş tamamlandı

Tamamlanma süresi: 3 gün
Müşteri tarafından geri bildirim
very nice job

İş Gereklilikleri

I need to convert a very simple code on PINE to MQL5 and create a simple expert based on this signal to buy or sell.
This expert needs to have a leverage variant to define size. Also the same indicator in another timeframe and with diff setups will work as a stop.

This is the PINE code:

src = input(close)
length = input(10)

a = 0.,b = 0.
a := max(src,nz(a[1])) - nz(a[1] - b[1])/length
b := min(src,nz(b[1])) + nz(a[1] - b[1])/length
avg = avg(a,b)
plot(avg,"Average",color=orange,linewidth=2,transp=0)


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(847)
Projeler
1449
72%
Arabuluculuk
120
28% / 47%
Süresi dolmuş
355
24%
Çalışıyor
Yayınlandı: 3 makale
2
Geliştirici 2
Derecelendirme
(130)
Projeler
210
40%
Arabuluculuk
90
20% / 43%
Süresi dolmuş
85
40%
Serbest
3
Geliştirici 3
Derecelendirme
(137)
Projeler
167
35%
Arabuluculuk
11
91% / 0%
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(83)
Projeler
143
52%
Arabuluculuk
8
13% / 75%
Süresi dolmuş
22
15%
Serbest
5
Geliştirici 5
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest
6
Geliştirici 6
Derecelendirme
(11)
Projeler
17
59%
Arabuluculuk
2
0% / 100%
Süresi dolmuş
2
12%
Serbest

Proje bilgisi

Bütçe
30 - 130 USD
Son teslim tarihi
to 3 gün