Import Libraries

In [1]:
import warnings
warnings.filterwarnings('ignore')
import yfinance as yf
import cufflinks as cf
cf.set_config_file(offline = True)
import numpy as np
import pandas as pd

Download Prices

In [2]:
cc = ['SPY', 'INMD', 'PRFT', 'ENPH', 'AMD', 'BLDR', 'CROX']
days = 20
dfm1 = yf.download(cc, period = str(days)+'d', progress=False)['Adj Close']

Plot Chart

In [3]:
dfm1.normalize().iplot(title = 'Covered Calls Portfolio vs SPY')