Stock Analysis with R



Stock Analysis with R

0 0


shinyPub2

html5 slide deck

On Github dwaynepaschall / shinyPub2

Stock Analysis with R

creating Information from Data

Dwayne Paschall

Motivation

Audience

  • retail traders
  • individual investors
  • people who want easy to interpret information about stock prices

Description

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.

Simplicity, by design

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.

App Layout

How does it work?

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')

App features

The main features of the app are:

  • View interactive plots for stocks, ETFs and mutual funds listed on Yahoo or Google financial server.
  • User inputs are simple and intuitive.
  • Platform and browser independent.
  • No software to install for the user.
  • The analysis is easy to interpret and uncomplicated.