visExpSmoothing: Using the trend of the stock by using exponential smoothing...

Description Usage Arguments Value Examples

View source: R/stockAnalyzer.R

Description

Using the trend of the stock by using exponential smoothing method

Usage

1

Arguments

data

xts a time series object

alpha

A numeric vector of the smoothing parameter which defines the weighting. It should be between 0 and 1

name

a character vector of the name of the column to be used in moving average calculation

Value

ggplot line plot of specific stock's historical prices and exponentially smoothed prices

Examples

1
2
quantmod::getSymbols("AAPL")
visES_AAPL <- visExpSmoothing(AAPL, 0.3, 'AAPL.Close')

UBC-MDS/stockAnalyzer documentation built on March 21, 2021, 7:14 p.m.