ADX(HLC, n=14, maType="EMA", wilder=TRUE, ...)TRUE, a Welles Wilder type EMA
will be calculated.maType function.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