plotOBOS: Plot Overbought/Oversold Regions for A Stock or ETF

Description Usage Arguments Details Value Author(s)

View source: R/plotOBOS.R

Description

Compute and display overbought and oversold regions

Usage

1
2
3
plotOBOS(symbol, n = 50, type = c("sma", "ema", "zlema", "hma"),
  years = 1, blue = TRUE, current = TRUE, title = symbol,
  ticks = TRUE, axes = TRUE)

Arguments

symbol

A (required) character string for stock symbol, or alternatively a xts or zoo object with data

n

An optional integer for the moving average length, defaults to 50

type

An optional character string for the type of moving average; currently supported are ‘SMA’, ‘EMA’, ‘ZLEMA’, and ‘HMA’.

years

An optional numeric or integer value for the number of years of data to display, defaults to one

blue

An optional boolean determining whether blue or gray tones are used, defaults to true implying blue tones

current

An optional boolean determining whether the current date is the end date

title

An optional character string for the plot title, defaults to the symbol

ticks

An optional boolean indicating whether ticks are plotted, passed on to plot.xts, defaults to true

axes

An optional boolean indicating whether axes are plotted, passed on to plot.xts, defaults to true

Details

This function computes a smoothed version of the price using a moving average (with one of several possible methods) as well as a standard deviation band, and displays one and two standard deviations around the smoothed price.

Value

NULL as the function is invoked for the side effect of the plot

Author(s)

Dirk Eddelbuettel


dang documentation built on Oct. 30, 2021, 1:08 a.m.