TheYangGuizi

CM_ADX+DMI Mod

2349
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
Colors can be adjusted though.
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)
오픈 소스 스크립트

이 스크립트의 오써는 참된 트레이딩뷰의 스피릿으로 이 스크립트를 오픈소스로 퍼블리쉬하여 트레이더들로 하여금 이해 및 검증할 수 있도록 하였습니다. 오써를 응원합니다! 스크립트를 무료로 쓸 수 있지만, 다른 퍼블리케이션에서 이 코드를 재사용하는 것은 하우스룰을 따릅니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

차트에 이 스크립트를 사용하시겠습니까?
//Created By Chris Moody on 11-18-2014
//Modded, YG, mashed together DMI + ADX
//Designed to go with ADX Trading System.
//Video Overview Explaining Setup
study(title="CM_ADX_V1", shorttitle="CM_ADX + DMI")
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")


col = adx <= 10 ? gray : adx > 10 and adx <= 20 and plus > minus ? #98FF98 :adx > 10 and adx <= 20 and plus < minus ? #E77471 : adx > 20 and adx <= osob and plus > minus ? lime :adx > 20 and adx <= osob and plus < minus? red: adx > osob and plus > minus ?green:adx > osob and plus < minus ?maroon:white
barcolor(col)
//plot(plus, color=lime, title="+DI", style=line, linewidth=3)
//plot(minus, color=red, title="-DI", style=line, linewidth=3)
plot(adx, color=col, title="ADX", style=columns)
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)