https://github.com/cran/quantmod
Raw File
Tip revision: ab25e4e0f0ec64a3a890cdaea15ab796c7d7f81f authored by Jeffrey A. Ryan on 13 June 2011, 00:00:00 UTC
version 0.3-17
Tip revision: ab25e4e
addROC.Rd
\name{addROC}
\alias{addROC}
\title{ Add Rate Of Change to Chart }
\description{
Add Rate Of Change indicator to chart.
}
\usage{
addROC(n = 1, type = c("discrete", "continuous"), col = "red")
}
\arguments{
  \item{n}{ periods }
  \item{type}{ compounding type }
  \item{col}{ line color (optional) }
}
\details{
See 'ROC' in \pkg{TTR} for specific details and references.
}
\value{
A ROC indicator will be draw in a new window on the current
chart.  A chobTA object will be returned silently.
}
\references{ see ROC in \pkg{TTR} written by Josh Ulrich }
\author{Jeffrey A. Ryan }
\seealso{ \code{\link{addTA}} }
\examples{
\dontrun{
addROC()
}
}
\keyword{utilities}
back to top