ADX(HLC, n = 14, maType, ...)
maType
function.HLC
or a matrix (if
try.xts
fails) containing the columns: [object Object],[object Object],[object Object],[object Object]DIp
/DIn
(positive/negative) is the
percentage of the true range that is up/down.EMA
, SMA
, etc. for moving
average options; and note Warning section. The DX
calculation uses ATR
. See
aroon
, CCI
,
TDI
, VHF
, GMMA
for other indicators that measure trend
direction/strength.data(ttrc)
dmi.adx <- ADX(ttrc[,c("High","Low","Close")])
Run the code above in your browser using DataLab