My sister recently started earning money from her part-time job. I taught her a simple trading strategy that uses some technical analysis. The strategy is a Techno-Funda strategy called Darvas Box. It is “Techno-Funda” because it uses both technical (data) analysis and Fundamental analysis. For the fundamental analysis portion, I decided to just use the large companies from the S&P500. This presentation showcases how the various data science tools in R can be used to conduct this analysis.
library(quantmod)
sp500_tickers <- read.csv(url) %>%
select(Symbol)
for (symbol in sp500_tickers) {
getSymbols(Symbols = symbol, env = sp500, src = "yahoo",
from = as.Date("1973-03-23"), to = Sys.Date())
}