TradingView Pine Script to MT4 Indicator

MQL4 Dönüştürme

İş tamamlandı

Tamamlanma süresi: 1 saat
Müşteri tarafından geri bildirim
I have been thoroughly impressed by your responsiveness and promptness in addressing my requirements
Geliştirici tarafından geri bildirim
Thank you

Şartname

Please convert the Pine Script below into MQL4 Indicator, an indicator of ADX and DI, 2 day period max:


//@version=4

study("ADX and DI for v4")
len = input(20)

TrueRange = max(max(high-low, abs(high-nz(close[1]))), abs(low-nz(close[1])))
DirectionalMovementPlus = high-nz(high[1]) > nz(low[1])-low ? max(high-nz(high[1]), 0): 0
DirectionalMovementMinus = nz(low[1])-low > high-nz(high[1]) ? max(nz(low[1])-low, 0): 0

SmoothedTrueRange = 0.0
SmoothedTrueRange := nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/len) + TrueRange

SmoothedDirectionalMovementPlus = 0.0
SmoothedDirectionalMovementPlus := nz(SmoothedDirectionalMovementPlus[1]) - (nz(SmoothedDirectionalMovementPlus[1])/len) + DirectionalMovementPlus

SmoothedDirectionalMovementMinus = 0.0
SmoothedDirectionalMovementMinus := nz(SmoothedDirectionalMovementMinus[1]) - (nz(SmoothedDirectionalMovementMinus[1])/len) + DirectionalMovementMinus

DIPlus = SmoothedDirectionalMovementPlus / SmoothedTrueRange * 100
DIMinus = SmoothedDirectionalMovementMinus / SmoothedTrueRange * 100
DX = abs(DIPlus-DIMinus) / (DIPlus+DIMinus)*100
ADX = sma(DX, len)

plot(DIPlus, color=color.green, title="DI+")
plot(DIMinus, color=color.red, title="DI-")
plot(ADX, color=color.yellow, title="ADX")


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(35)
Projeler
50
42%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
4
8%
Serbest
2
Geliştirici 2
Derecelendirme
(268)
Projeler
603
34%
Arabuluculuk
65
22% / 57%
Süresi dolmuş
147
24%
Çalışıyor
Yayınlandı: 1 makale, 22 kod
3
Geliştirici 3
Derecelendirme
(12)
Projeler
14
43%
Arabuluculuk
3
33% / 33%
Süresi dolmuş
2
14%
Serbest
4
Geliştirici 4
Derecelendirme
(171)
Projeler
195
42%
Arabuluculuk
13
8% / 54%
Süresi dolmuş
9
5%
Serbest
Yayınlandı: 3 kod
5
Geliştirici 5
Derecelendirme
(12)
Projeler
12
25%
Arabuluculuk
0
Süresi dolmuş
1
8%
Serbest
6
Geliştirici 6
Derecelendirme
(13)
Projeler
18
44%
Arabuluculuk
2
50% / 50%
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(574)
Projeler
945
47%
Arabuluculuk
309
58% / 27%
Süresi dolmuş
125
13%
Serbest

Proje bilgisi

Bütçe
35+ USD
Son teslim tarihi
to 2 gün