The Stock Analysis shiny app provides a simple interface for analysing stock prices to educate the user on when a good time might be to purchase a particular stock. While the app doesn't give advice on what to buy, it can provide helpful information about when a particular stock that you choose is likely to increase (or decrease) in price.
The only inputs required by the user are 1) the ticker symbol of the stock you want to see and 2) the date range to view. The server automatically executes the processing when the user types in the text. There is no update button. Just type and view.
We get the ticker symbol from the user in the UI and then run server code similar to the segment below.
require(quantmod) options("getSymbols.warning4.0"=FALSE) data <- getSymbols('SPY', src = "yahoo", from = "2014-08-07", to = "2015-01-22", auto.assign = FALSE) candleChart(data$SPY.Close, type='candles', name = 'SPY', TA = 'addROC(n = 5, type = "discrete")', time.scale='daily')
The main features of the app are: