Convert an Indicator from tradingview (pinescript) to MQL5

MQL5 Uzmanlar Dönüştürme

İş tamamlandı

Tamamlanma süresi: 26 gün
Müşteri tarafından geri bildirim
Patient developer who is willing to work with u ...
Geliştirici tarafından geri bildirim
Thank you!

İş Gereklilikleri

1. Convert the following pinescript to MQL5 EA

2. Add in entry buy / sell  limit/ market orders types

2a. Limit order based on market close of signal bar

2b. Display buy / sell signal on chart similar to trading view 

3. Exit current position / cancel previous order (if not executed) on opposite signal +  enter into position based on new opposite signal based on item 2)

4. Include optional stop loss (% terms), trailing stop loss (% terms) and chandelier exit (code available in mql5, attached) options, whichever activated earlier

4a. inputable Chandelier exit inputs

5. Include optional take profit in i) % terms, ii) based on ATR. For these options, pls add % of holdings to liquidate... remaining can be liquidated using opposite signal

6. Order entry based on % of equity

7. Magic number entry 

8. Current / Custom symbol(s)  option


PineScript code .........................................


//@version=4

study("Hull Trend", shorttitle="HMA Trend",overlay=true)

length = input(24)

src = input(hl2)

showcross = input(true, "Show cross over/under")


hma(_src, _length)=>

    wma((2 * wma(_src, _length / 2)) - wma(_src, _length), round(sqrt(_length)))

    

hma3(_src, _length)=>

    p = length/2

    wma(wma(close,p/3)*3 - wma(close,p/2) - wma(close,p),p)



a = hma(src, length)

b = hma3(src, length)

c = b > a ? color.lime : color.red

p1 = plot(a,color=c,linewidth=1,transp=75)

p2 = plot(b,color=c,linewidth=1,transp=75)

fill(p1,p2,color=c,transp=55)

crossdn = a > b and a[1] < b[1]

crossup = b > a and b[1] < a[1]

plotshape(showcross and crossdn ? a : na, location=location.absolute, style=shape.labeldown, color=color.red, size=size.tiny, text="Sell", textcolor=color.white, transp=0, offset=-1)

plotshape(showcross and crossup ? a : na, location=location.absolute, style=shape.labelup, color=color.green, size=size.tiny, text="Buy", textcolor=color.white, transp=0, offset=-1)

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(315)
Projeler
353
71%
Arabuluculuk
6
50% / 33%
Süresi dolmuş
20
6%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(132)
Projeler
178
39%
Arabuluculuk
4
25% / 50%
Süresi dolmuş
14
8%
Serbest
3
Geliştirici 3
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(152)
Projeler
228
80%
Arabuluculuk
22
27% / 50%
Süresi dolmuş
11
5%
Serbest
Yayınlandı: 24 makale, 1882 kod
5
Geliştirici 5
Derecelendirme
(40)
Projeler
55
35%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest

Proje bilgisi

Bütçe
45+ USD
Son teslim tarihi
from 1 to 5 gün