Adx by cobra - Convert MT5

MQL5 Indicateurs Convertir

Tâche terminée

Temps d'exécution 3 jours
Commentaires de l'employé
5+

Spécifications

Hi,


Is there anyone able to convert adx by cobra from TradingView to MT5?

study("ADX and DI")
len = input(title="Length", type=integer, defval=3)
len1 = input(title="Length1", type=integer, defval=1)
th = input(title="threshold", type=integer, defval=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 = nz(SmoothedTrueRange[1]) - (nz(SmoothedTrueRange[1])/len) + TrueRange
SmoothedDirectionalMovementPlus = nz(SmoothedDirectionalMovementPlus[1]) - (nz(SmoothedDirectionalMovementPlus[1])/len) + DirectionalMovementPlus
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)
//Skuska
crosscall = (DIPlus > DIMinus)
crossput = (DIMinus > DIPlus)
DIPcross = sma(crosscall, len1)
DIPput = sma(crossput, len1)
DIPOVB = (DIPlus > 60)
DIMOVS = (DIMinus > 60)


bgcolor(DIMOVS ? lime : na, transp=40)
bgcolor(DIPOVB ? orange : na, transp=20)
plot(DIPlus, color=green, linewidth=3, title="DI+")
plot(DIMinus, color=red, linewidth=3, title="DI-")
plot(ADX, color=white, linewidth=1, title="ADX")
hline(th, color=white, linewidth=1, linestyle=dashed)
bgcolor(DIPcross ? green : na, transp=60)
bgcolor(DIPput ? red : na, transp=60)

We can discuss about the budget.

Thank you!

Répondu

1
Développeur 1
Évaluation
(647)
Projets
1295
67%
Arbitrage
84
26% / 49%
En retard
338
26%
Gratuit
2
Développeur 2
Évaluation
(155)
Projets
239
70%
Arbitrage
3
67% / 33%
En retard
20
8%
Gratuit
3
Développeur 3
Évaluation
(31)
Projets
44
61%
Arbitrage
0
En retard
0
Gratuit
4
Développeur 4
Évaluation
(54)
Projets
53
17%
Arbitrage
7
0% / 100%
En retard
5
9%
Gratuit
5
Développeur 5
Évaluation
(57)
Projets
72
22%
Arbitrage
13
46% / 15%
En retard
5
7%
Gratuit
6
Développeur 6
Évaluation
(564)
Projets
845
73%
Arbitrage
15
53% / 13%
En retard
193
23%
Gratuit
7
Développeur 7
Évaluation
(453)
Projets
566
26%
Arbitrage
24
42% / 38%
En retard
85
15%
Gratuit
Publié : 6 codes
8
Développeur 8
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
9
Développeur 9
Évaluation
(69)
Projets
146
34%
Arbitrage
13
8% / 62%
En retard
26
18%
Gratuit
Publié : 6 codes
10
Développeur 10
Évaluation
(58)
Projets
76
33%
Arbitrage
9
78% / 11%
En retard
7
9%
Gratuit
Publié : 2 codes

Informations sur le projet

Budget
30 - 100 USD