Skip to contents

indicator() will look for an existing chart()-object and attach the indicator accordingly. All indicators can be charted indepently of whether chart() have been called.

If no chart() have been called prior to indicator() the indicator will be charted by itself if data is provided. See vignette(topic = "charting", package = "talib") for more details.

Usage

indicator(FUN, ...)

Arguments

FUN

An indicator function.

...

Arguments passed into FUN.

See also

Other Charting: chart()

Author

Serkan Korkmaz

Examples

## charting in {talib}
## using {plotly}
data(BTC, package = "talib")

## chart Relative Strength Index
## with default values
{
  talib::indicator(
    talib::RSI,
    data = BTC
  )
}
## chart Relative Strength Index ## with different values for 'n' { talib::indicator( talib::RSI, data = BTC, n = 20 ) }