Description Usage Arguments Details See Also Examples
Use RSI (Relative Strength Index) to calculate a momentum indicator
1 | momentum.RSI(y, n)
|
y |
Price series that is coercible to xts or matrix |
n |
Number of periods for moving averages. |
The RSI calculation is RSI = 100 - 100 / ( 1 + RS ), where RS is the smoothed ratio of 'average' gains over 'average' losses. The 'averages' aren't true averages, since they're divided by the value of n and not the number of periods in which there are gains/losses.
RSI > 70 means the asset is overvalued and overbought (go short)
RSI < 30 means the asset is undervalued and underbought (go long)
momentum.MACD
momentum.Crossover
1 2 | y = AUDUSD
momRSI <- momentum.RSI(y)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.