Learn R Programming

quantmod (version 0.4.26)

addRSI: Add Relative Strength Index to Chart

Description

Add a Relative Strength Index indicator to chart.

Usage

addRSI(n = 14, maType = "EMA", wilder = TRUE)

Value

An RSI indicator will be draw in a new window on the current chart. A chobTA object will be returned silently.

Arguments

n

periods

maType

type of MA to use

wilder

use wilder (see EMA)

Author

Jeffrey A. Ryan

Details

see 'RSI' in TTR for specific details and references.

References

see RSI in TTR written by Josh Ulrich

See Also

addTA

Examples

Run this code
if (FALSE) {
addRSI()
}

Run the code above in your browser using DataLab