Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 )image text in transcribedimage text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The No Nonsense Guide To Globalization

Authors: Wayne Ellwood

1st Edition

1904456448, 190652355X, 9781906523558

More Books

Students also viewed these Finance questions