logo Hurry, Grab up to 30% discount on the entire course
Order Now logo
412 Times Downloaded

Ask This Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Tanushri MehtaGeneral article writing
(5/5)

798 Answers

Hire Me
expert
Rajat DuhanFinance
(5/5)

782 Answers

Hire Me
expert
Benard MainaFinance
(/5)

886 Answers

Hire Me
expert
StatAnalytica ExpertResume writing
(5/5)

952 Answers

Hire Me
R Programming
(5/5)

There are more than 3000 stocks trading in NYSE. Select a company with a dividend history longer than 10 years, which you would like to invest in.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Task:

There are more than 3000 stocks trading in NYSE. Select a company with a dividend history longer than 10 years, which you would like to invest in.

1. Explain or present your idea about why you would like to invest in this particular company along with a suggested investment horizon using approximately 1000 words. Please do not copy and paste from the company’s annual report or website.

2. Install the package “Quantmod” in R and obtain the price history of your suggested stock.

3. Write a R function to calculate the n-days moving average of the closing price.

4. Write a R function to calculate the Bollinger bands. Normally, we use a 20 day moving average to create the Bollinger bands. For the sake of an individual project, please use a

𝑐𝑒𝑐𝑐𝑙𝑐𝑐𝑛𝑔 οΏ½20 + π‘™π‘Žπ‘ π‘‘ π‘‘π‘‘π‘‘π‘œ 𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑑𝑠 π‘œπ‘œπ‘œ 𝑠𝑑𝑒𝑑𝑒𝑛𝑑 𝐼𝐷� days moving average.

10

For example, if your student ID is 20221234D, then please use the ceiling(20+3.4)=24 days moving average to create the Bollinger bands.

5. Stanley believes that an investment strategy would be buy the stock when the stock price touches the bottom band and sell the stock when the stock price touches the upper band. Write a R function for this strategy. For the last 720 trading days, count how many times this strategy was executed and find the probability of making a profit and calculate the profit if one stock is being bought and sold whenever the strategy is executed.

 6. Adam believes that this strategy only works if the Bollinger bands are converging. This is something which we can do easily by reading the chart. Suggest a way to instruct R to identify that that Bollinger bands are converging.

7. Imagine your father has bought 1 share of this company 10 years ago on your birthday, works out the Internal Rate of Return. Note: dividends are part of your returns as well. Please apply what you have learned in root finding to obtain the IRR. Would it be smarter to buy the US 10-years treasury bill ten years ago?

8. Use taskcheduleR or any scheduling package in R to schedule your functions to run everyday by 18:00.

(Possible) Useful packages:

taskscheduleR

(Possible) Useful functions:

GetSymbols() GetDividends() julian()

Internal Rate of Return (IRR): The IRR is the discount rate that makes the net present value (NPV) of an investment zero. In other words, it is the expected compounded annual rate of return that will be earned on an investment. Hence,

𝑁

  𝐢𝐹𝑛

0 = 𝑁𝑃𝑉 = οΏ½ (1 + 𝐼𝑅𝑅)𝑛

𝑛=0

where, 𝐢𝐹0 is the initial investment and 𝐢𝐹𝑑𝑑  are the cashflows at time 𝑐𝑐, 𝑁 is the holding period and

𝑁𝑃𝑉 is the net present value.

For example, if Frankie invests $1000000 now and he will get his initial investment back in 1 year and he will receive $4000 per month. The IRR can be calculated as

12

  𝑑𝑑

−1

 0 = −1000000 + οΏ½ 4000 (1 + 𝐼𝑅𝑅)

𝑑𝑑=1

Note that the 𝐼𝑅𝑅 here is the annual effective rate.

 

(5/5)
Attachments:

Expert's Answer

412 Times Downloaded

Related Questions

. The fundamental operations of create, read, update, and delete (CRUD) in either Python or Java

CS 340 Milestone One Guidelines and Rubric  Overview: For this assignment, you will implement the fundamental operations of create, read, update,

. Develop a program to emulate a purchase transaction at a retail store. ThisΒ  program will have two classes, a LineItem class and a Transaction class

Retail Transaction Programming Project  Project Requirements:  Develop a program to emulate a purchase transaction at a retail store. This

. The following program contains five errors. Identify the errors and fix them

7COM1028   Secure Systems Programming   Referral Coursework: Secure

. Accepts the following from a user: Item Name Item Quantity Item Price Allows the user to create a file to store the sales receipt contents

Create a GUI program that:Accepts the following from a user:Item NameItem QuantityItem PriceAllows the user to create a file to store the sales receip

. The final project will encompass developing a web service using a software stack and implementing an industry-standard interface. Regardless of whether you choose to pursue application development goals as a pure developer or as a software engineer

CS 340 Final Project Guidelines and Rubric  Overview The final project will encompass developing a web service using a software stack and impleme