Skip to contents

Plot stock price and corresponding upper and lower Bollinger bands for the last 200 trading days.

Usage

plot_bbands(stock_ticker)

Arguments

stock_ticker

string Ticker symbol of the stock for which the plot is created such as "MSFT"

Value

A line chart showing price data and corresponding upper and lower Bollinger bands.

Examples

plot_bbands("MSFT")
#> Rows: 9299 Columns: 8
#> ── Column specification ────────────────────────────────────────────────────────
#> Delimiter: ","
#> chr  (1): symbol
#> dbl  (6): open, high, low, close, volume, adjusted
#> date (1): date
#> 
#>  Use `spec()` to retrieve the full column specification for this data.
#>  Specify the column types or set `show_col_types = FALSE` to quiet this message.