This package returns stock price data from Yahoo Finance, plots detailed graphs and performs forecasting using time series analisys or neural networks.
devtools::install_github('unimi-dse/e16b23fb')
require(stockforecasting)
You have to use the first get_data(“id”) function specifing your Yahoo Finance Ticker as the argument and storing the results in a variable that you will use as argument for the other functions. If you don’t store any data and don’t specify any argument it uses TSLA data
get_data()
Downloads the dataset
plot_stockp()
Plots the closing price of selected stock
plot_zoom()
Plots a zoomed graph of the last 8 weeks
plot_ema()
Plots a graph that shows the EMA’s
forecast_arima()
Performs ARIMA model forecasting
train_arima()
Trains arima model
forecast_NN()
Performs forecasting with a Single Layer Neural Network Model
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.