8513 görüntülenme
Mashed together Chris Moody's ADX thing with his DMI thing.
So you can see trend strength + direction
green-ish = uptrend-ish//red-ish = downtrend-ish
below 10 = gray, not much going on
10 - 20 = light green/light red, could be the beginning o something
20 - 40 = bright green / bright red, something is going on
above 40 = dark green, dark red, exhaustion (default is 40 , can be adjusted to whatever)
```//Created By Chris Moody on 11-18-2014
//Modded, YG, mashed together DMI + ADX
//Video Overview Explaining Setup
len = input(14, minval=1, title="DI Length")
lensig = input(14, title="ADX Smoothing", minval=1, maxval=50)

up = change(high)
down = -change(low)
trur = rma(tr, len)

plus = fixnan(100 * rma(up > down and up > 0 ? up : 0, len) / trur)
minus = fixnan(100 * rma(down > up and down > 0 ? down : 0, len) / trur)

sum = plus + minus
adx = 100 * rma(abs(plus - minus) / (sum == 0 ? 1 : sum), lensig)

osob=input(40,title="Exhaustion Level for ADX, default = 40")

barcolor(col)
//plot(plus, color=lime, title="+DI", style=line, linewidth=3)
//plot(minus, color=red, title="-DI", style=line, linewidth=3)
plot(0, title="0 Line", style=line, linewidth=1, color=gray)

plot(10, title="10 Line", style=circles, linewidth=1, color=gray)

plot(20, title="20 Line", style=circles, linewidth=1, color=gray)

plot(osob, title="10 Line", style=circles, linewidth=1, color=gray)
```

## Yorumlar

Love the work you have done. This indicator has become a very import part of my trading system. Thank you!
Cevap Gönder
Hello Sir,

I observed that in down trend it should show light red, strong red or dark Red, instead some candles it is showing as green or dark green is it expected behavior?
Cevap Gönder
very much thx
Cevap Gönder
THX
Cevap Gönder
Love this! Thank you
Cevap Gönder
Excellent
Cevap Gönder