plotOBOS | R Documentation |
Compute and display overbought and oversold regions
plotOBOS(symbol, n = 50, type = c("sma", "ema", "zlema", "hma"),
years = 1, blue = TRUE, current = TRUE, title = symbol,
ticks = TRUE, axes = TRUE)
symbol |
A (required) character string for stock symbol, or
alternatively a |
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 |
axes |
An optional boolean indicating whether axes are plotted,
passed on to |
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.
NULL
as the function is invoked for the side effect of
the plot
Dirk Eddelbuettel
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.