Skip to contents

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

Usage

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

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