Question: Suppose you saved the code in the previous question as oracle.py You uploaded oracle.py into the Files tab of Google Colab. This module uses both

Suppose you saved the code in the previous question as oracle.py You uploaded oracle.py into the Files tab of Google Colab. This module uses both the pandas-ta and pycm packages, which are not installed on Google Colab. Install both packages, and then import oracle.py. Apply the GIMME_THAT_AFTER_A_YEAR function from oracle.py and predict if the following portfolio will yield at least 20% return after one year:

  • $15,000 in AAPL,
  • $10,000 in BTC-USD,
  • $25,000 in HSY.

Download the historic data starting on Oct 20, 2013. Fill in the blanks and complete the code. Please do not type any space characters in the blanks. HINT : Let's review video 8.1.3 , 8.1.4 , and 8.1.6

!pip install pandas-ta !pip install pycm import

as CIDER

(

=["

"] ,

=[0.5,0.3,0.2] , BEGIN=

,

=0.2 )Suppose you saved the code in the previous question as oracle.py Youuploaded oracle.py into the Files tab of Google Colab. This module uses

Homework 6 oracle.py and predict if the following portfolio will yield at least 208 return after one year: - $15,000 in AAPL, - $10,000 in BTC-USD, - $25,000 in HSY. Download the historic data starting on oct 20, 2013. Fill in the blanks and complete the code. Please do not type any space characters in the blanks. HINT : Let's review video 8.1.3,8.1.4, and 8.1 .6 !pip install pandas-ta !pip install pycm import as CIDER =[" !pip install pandas-ta !pip install pycm import as CIDER "] , "2013-10-20" =0.2 ) Homework 6 oracle.py and predict if the following portfolio will yield at least 208 return after one year: - $15,000 in AAPL, - $10,000 in BTC-USD, - $25,000 in HSY. Download the historic data starting on oct 20, 2013. Fill in the blanks and complete the code. Please do not type any space characters in the blanks. HINT : Let's review video 8.1.3,8.1.4, and 8.1 .6 !pip install pandas-ta !pip install pycm import as CIDER =[" !pip install pandas-ta !pip install pycm import as CIDER "] , "2013-10-20" =0.2 )

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!