TradingView
binary_trader66
14 เมษา 2016 เวลา 15 นาฬิกา 51 นาที
ADX by cobra
KRAKEN:ETHEUR
240
Ethereum / Euro
Kraken
คำอธิบาย
⋅
14 เมษา 2016 เวลา 15 นาฬิกา 51 นาที
adx by cobra
ADX
by
cobra
Average Directional Index (ADX)
ความคิดเห็น
vaicru
⋅
14 เมษา 2016 เวลา 17 นาฬิกา 26 นาที
How can I use this script ? thanks
ap3542
⋅
29 ธันวา 2019 เวลา 22 นาฬิกา 4 นาที
what do the yellow areas mean?
nattamejortho
⋅
7 สิงหา 2022 เวลา 7 นาฬิกา 51 นาที
@ap3542
,
MikaelHarts
⋅
15 กุมภา 2017 เวลา 3 นาฬิกา 41 นาที
how to put adx cobra in trading view ? I was search adx cobra but I dont find ? I'm waiting thanks
binary_trader66
⋅
15 กุมภา 2017 เวลา 12 นาฬิกา 51 นาที
@MikaelHarts
, just copy it to your pine script and save
kss5
⋅
10 กุมภา 2017 เวลา 16 นาฬิกา 21 นาที
Hello! Possible to talk with You outside of this website?
Trade_with_ICE
⋅
22 พฤษภา 2021 เวลา 2 นาฬิกา 25 นาที
what does the yellow background mean???
binary_trader66
⋅
30 พฤษภา 2021 เวลา 18 นาฬิกา 6 นาที
@iCedNinja, local maximum or minimum of the function (best entry)
syuraj
⋅
14 มกรา 2023 เวลา 20 นาฬิกา 1 นาที
Seems like no one bothered to update it to v5. So, I gave it a try.
//
@version
=5
indicator("ADX and DI")
len = input.int(title="Length", defval=3)
len1 = input.int(title="Length1", defval=1)
th = input.int(title="threshold", defval=20)
TrueRange = math.max(math.max(high-low, math.abs(high-nz(close[1]))), math.abs(low-nz(close[1])))
DirectionalMovementPlus = high-nz(high[1]) > nz(low[1])-low ? math.max(high-nz(high[1]), 0): 0
DirectionalMovementMinus = nz(low[1])-low > high-nz(high[1]) ? math.max(nz(low[1])-low, 0): 0
SmoothedTrueRange = nz(TrueRange[1]) - (nz(TrueRange[1])/len) + TrueRange
SmoothedDirectionalMovementPlus = nz(DirectionalMovementPlus[1]) - (nz(DirectionalMovementPlus[1])/len) + DirectionalMovementPlus
SmoothedDirectionalMovementMinus = nz(DirectionalMovementMinus[1]) - (nz(DirectionalMovementMinus[1])/len) + DirectionalMovementMinus
DIPlus = SmoothedDirectionalMovementPlus / SmoothedTrueRange * 100
DIMinus = SmoothedDirectionalMovementMinus / SmoothedTrueRange * 100
DX = math.abs(DIPlus-DIMinus) / (DIPlus+DIMinus)*100
ADX = ta.sma(DX, len)
//Skuska
crosscall = (DIPlus > DIMinus) ? 1 : 0
crossput = (DIMinus > DIPlus) ? 1 : 0
DIPcross = ta.sma(crosscall, len1)
DIPput = ta.sma(crossput, len1)
DIPOVB = (DIPlus > 60)
DIMOVS = (DIMinus > 60)
bgcolor(DIMOVS ? color.new(color.lime,transp=40) : na)
bgcolor(DIPOVB ? color.new(color.orange,transp=20) : na)
plot(DIPlus, color=color.green, linewidth=3, title="DI+")
plot(DIMinus, color=color.red, linewidth=3, title="DI-")
plot(ADX, color=color.white, linewidth=1, title="ADX")
hline(th, color=color.white, linewidth=1, linestyle=hline.style_dashed)
bgcolor(DIPcross ? color.new(color.green,transp=60) : na)
bgcolor(DIPput ? color.new(color.red,transp=60) : na)
Satishchandra
⋅
17 มกรา 2023 เวลา 17 นาฬิกา 24 นาที
@syuraj
, Not working
เพิ่มเติม