SOX指数と米国10年債利回り、デイトレ銘柄レーザーテックの時系列の関係をプロットした。 library(tidyquant) library(dplyr) library(ggplot2) soxlt <- tidyquant::tq_get(c("^SOX","6920.T","^TNX")) soxlt.tail <- soxlt %>% group_by(symbol) %>% do(ta…
最近チャートを見ている$SOXLと$XOMのGeneralized Additive Model解析を行った。 library(tidyquant) library(mgcv) soxl <- tidyquant::tq_get("SOXL") soxl$year <- as.integer(format(as.Date(soxl$date), "%Y")) soxl$month <- as.integer(format(as.Dat…
github.com remotes::install_github("joshuaulrich/quantmod@358-getsymbols-new.session")