ADX(HLC, n=14, ma.adx=list("EMA", n=n, wilder=TRUE))
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
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