profit_viz: Visualizes trend of a stock price change against the market...

Description Usage Arguments Value Examples

View source: R/Rstockwatch.R

Description

Visualizes trend of a stock price change against the market benchmark within a given period of time

Usage

1
profit_viz(stock_ticker, start_date, end_date, benchmark_ticker)

Arguments

stock_ticker

A string related to ticker of the stock or ETF, such as "AAPL"

start_date

A date in string format of "YYYY-MM-DD" related to start of data extraction

end_date

A date in string format of "YYYY-MM-DD" related to end of data extraction

benchmark_ticker

A string Benchmark Ticker of the stock such as 'SPY'

Value

A line plot showing the profit percent trend of the stock price change against the market benchmark within a given period of time

Examples

1
        profit_viz('AAPL', '2017-01-01', '2022-01-10','MSFT')

UBC-MDS/Rstockwatch documentation built on Feb. 7, 2022, 9:11 a.m.