İş tamamlandı
Tamamlanma süresi: 3 gün
Müşteri tarafından geri bildirim
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ı
Arabuluculuk
122
29%
/
48%
Yayınlandı: 3 makale
Arabuluculuk
90
20%
/
43%
Arabuluculuk
309
58%
/
27%