Skip to content

Instantly share code, notes, and snippets.

View msmith01's full-sized avatar

Matthew Smith msmith01

View GitHub Profile
@msmith01
msmith01 / intraday-sp500.R
Created November 14, 2020 20:37 — forked from joshuaulrich/intraday-sp500.R
Track the S&P 500 throughout the trading day
require(quantmod)
do_chart <- function(symbol) {
quote <- getQuote(symbol)
quote$Close <- quote$Last
xts(OHLCV(quote), quote[,"Trade Time"],
pct_change = quote[,"% Change"])
}
x <- readRDS("intraday-sp500.rds")