Stefan Putra Lionar
14 March 2018
This application generates candelestick chart of NASDAQ 100 stocks up to 5 years.
Features:
Link: https://splionar.shinyapps.io/candlestick-chart-generator/
Data is taken from R's quantmod package. Sample shown below:
library(plotly)
library(quantmod)
ticker <- "AAPL"
ticker_char <- as.character(ticker)
a<- getSymbols(ticker,src='yahoo', auto.assign = FALSE)
df <- data.frame(Date=index(a),coredata(a))
df <- tail(df, 30)
tail(df,5)
Date AAPL.Open AAPL.High AAPL.Low AAPL.Close AAPL.Volume
2814 2018-03-07 174.94 175.85 174.27 175.03 31703500
2815 2018-03-08 175.48 177.12 175.07 176.94 23774100
2816 2018-03-09 177.96 180.00 177.39 179.98 32185200
2817 2018-03-12 180.29 182.39 180.21 181.72 32207100
2818 2018-03-13 182.59 183.50 179.24 179.97 31244000
AAPL.Adjusted
2814 175.03
2815 176.94
2816 179.98
2817 181.72
2818 179.97
Plot is generated using Plotly. Here is the snapshot.