Exercises
Use the stock_analysis
package to complete the following exercises. Unless otherwise noted, use data from 2019 through the end of 2020. In case there are any issues collecting the data with the StockReader
class, backup CSV files are provided in the exercises/
directory:
- Using the
StockAnalyzer
andStockVisualizer
classes, calculate and plot three levels of support and resistance for Netflix's closing price. - With the
StockVisualizer
class, look at the effect of after-hours trading on the FAANG stocks:a) As individual stocks
b) As a portfolio using the
make_portfolio()
function from thestock_analysis.utils
module - Using the
StockVisualizer.open_to_close()
method, create a plot that fills the area between the FAANG stocks' opening price (as a portfolio) and its closing price each day in red if the price declined and in green if the price increased. As a bonus, do the same for a portfolio of bitcoin and the S&P 500. - Mutual funds and exchange...