Welles Wilder's Directional Movement Index
Directional Movement Index; developed by J. Welles Wilder.
ADX(HLC, n = 14, maType, ...)
HLC |
Object that is coercible to xts or matrix and contains High-Low-Close prices. |
n |
Number of periods to use for DX calculation (not ADX calculation). |
maType |
A function or a string naming the function to be called. |
... |
Other arguments to be passed to the |
The DIp
/DIn
(positive/negative) is the percentage of the true
range that is up/down.
A object of the same class as HLC
or a matrix (if
try.xts
fails) containing the columns:
The positive Direction Index.
The negative Direction Index.
The Direction Index.
The Average Direction Index (trend strength).
A buy/sell signal is generated when the +/-DI crosses up over the -/+DI, when the DX/ADX signals a strong trend. A high/low DX signals a strong/weak trend. DX is usually smoothed with a moving average (i.e. the ADX).
Joshua Ulrich
The following site(s) were used to code/document this
indicator:
https://www.fmlabs.com/reference/DI.htm
https://www.fmlabs.com/reference/DX.htm
https://www.fmlabs.com/reference/ADX.htm
https://www.fmlabs.com/reference/ADXR.htm
https://www.metastock.com/Customer/Resources/TAAZ/?p=49
https://www.linnsoft.com/techind/directional-indicator-diplus-diminus
https://www.linnsoft.com/techind/adx-avg-directional-movement
https://www.linnsoft.com/techind/adxr-avg-directional-movement-rating
https://school.stockcharts.com/doku.php?id=technical_indicators:average_directional_index_adx
data(ttrc) dmi.adx <- ADX(ttrc[,c("High","Low","Close")])
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.