Skip to contents

Plot stock price and corresponding 200 day moving average.

Usage

plot_200ma(stock_ticker)

Arguments

stock_ticker

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

Value

A line chart showing price data and corresponding 200 day moving average line for a stock.

Examples

plot_200ma("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.