Question 6

library(quantmod)
## Loading required package: xts
## Loading required package: zoo
## 
## Attaching package: 'zoo'
## The following objects are masked from 'package:base':
## 
##     as.Date, as.Date.numeric
## Loading required package: TTR
## Registered S3 method overwritten by 'quantmod':
##   method            from
##   as.zoo.data.frame zoo
getSymbols.yahoo("MSFT",.GlobalEnv,from="2024-10-01",to="2025-01-31",periodicity="weekly")
## [1] "MSFT"
#Returns WEEKLY stock prices for Microsoft, not daily
getSymbols("MSFT", src="yahoo", from="2024-10-01", to="2025-01-31")
## [1] "MSFT"
#Shows daily prices, BUT ends on 01-30 rather than 01-31
getSymbols("MSFT", src="yahoo", from="2024-10-01", to="2025-02-01")
## [1] "MSFT"
#Correctly shows daily prices with end on 01-31

#84 entries

Question 8

plot(MSFT$MSFT.Open)

#Observe high open prices around December 9th to December 18th
#Aligns with data