[Candlesticks-commits] r36 - in pkg: . R man
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Sat Feb 1 22:27:45 CET 2020
Author: wotuzu17
Date: 2020-02-01 22:27:44 +0100 (Sat, 01 Feb 2020)
New Revision: 36
Added:
pkg/R/CSPThreeLineStrike.R
pkg/man/CSPThreeLineStrike.Rd
Modified:
pkg/CHANGES
pkg/DESCRIPTION
pkg/NAMESPACE
pkg/R/CSPHarami.R
pkg/R/CSPThreeMethods.R
pkg/man/CSPDarkCloudCover.Rd
pkg/man/CSPDoji.Rd
pkg/man/CSPEngulfing.Rd
pkg/man/CSPGap.Rd
pkg/man/CSPHammer.Rd
pkg/man/CSPHarami.Rd
pkg/man/CSPInsideDay.Rd
pkg/man/CSPInvertedHammer.Rd
pkg/man/CSPKicking.Rd
pkg/man/CSPLongCandle.Rd
pkg/man/CSPMarubozu.Rd
pkg/man/CSPNBlended.Rd
pkg/man/CSPNHigherClose.Rd
pkg/man/CSPNLongWhiteCandles.Rd
pkg/man/CSPPiercingPattern.Rd
pkg/man/CSPStar.Rd
pkg/man/CSPStomach.Rd
pkg/man/CSPTasukiGap.Rd
pkg/man/CSPThreeBlackCrows.Rd
pkg/man/CSPThreeMethods.Rd
pkg/man/CSPThreeWhiteSoldiers.Rd
pkg/man/CandleAverage.Rd
pkg/man/CandleLength.Rd
pkg/man/DonchianChannel2.Rd
pkg/man/LagOC.Rd
pkg/man/LagOHLC.Rd
pkg/man/TrendDetectionChannel.Rd
pkg/man/TrendDetectionSMA.Rd
pkg/man/addPriceInfo.Rd
pkg/man/candlesticks-package.Rd
pkg/man/isOC.Rd
pkg/man/nextCandlePosition.Rd
Log:
added CSPThreeLineStrike and cleaned .Rd files
Modified: pkg/CHANGES
===================================================================
--- pkg/CHANGES 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/CHANGES 2020-02-01 21:27:44 UTC (rev 36)
@@ -3,3 +3,4 @@
0.2-6 va 2018-09-01 lag -> stats::lag to prevent issues with dplyr
0.2-7 va 2018-09-06 fixed CSPNLong(White|Black)Candles functions
0.2-8 va 2019-02-22 fixed colnames in CSPLongCandle.R; thank you Sonam for reporting
+0.2-9 va 2020-02-01 added CSPThreeLineStrike
Modified: pkg/DESCRIPTION
===================================================================
--- pkg/DESCRIPTION 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/DESCRIPTION 2020-02-01 21:27:44 UTC (rev 36)
@@ -1,8 +1,8 @@
Package: candlesticks
Type: Package
Title: Candlestick Pattern Recognition
-Version: 0.2-8
-Date: 2019-02-22
+Version: 0.2-9
+Date: 2020-02-01
Author: Andreas Voellenklee
Maintainer: Andreas Voellenklee <wotuzu17 at gmail.com>
Depends: R (>= 2.13), xts (>= 0.8-2), quantmod (>= 0.3-17), TTR (>= 0.21-0)
Modified: pkg/NAMESPACE
===================================================================
--- pkg/NAMESPACE 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/NAMESPACE 2020-02-01 21:27:44 UTC (rev 36)
@@ -27,6 +27,7 @@
export(CSPTasukiGap)
export(CSPThreeBlackCrows)
export(CSPThreeInside)
+export(CSPThreeLineStrike)
export(CSPThreeMethods)
export(CSPThreeOutside)
export(CSPThreeWhiteSoldiers)
Modified: pkg/R/CSPHarami.R
===================================================================
--- pkg/R/CSPHarami.R 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/R/CSPHarami.R 2020-02-01 21:27:44 UTC (rev 36)
@@ -1,6 +1,6 @@
CSPHarami <- function(TS, n=20, minbodysizeMedian=1) {
if (!is.OC(TS)) {
- stop("Price series must contain Open, High, Low and Close.")
+ stop("Price series must contain Open and Close.")
}
LAGTS <- LagOC(TS, k=1)
LongCandleBody <- CSPLongCandleBody(LAGTS, n=n, threshold=minbodysizeMedian)
Added: pkg/R/CSPThreeLineStrike.R
===================================================================
--- pkg/R/CSPThreeLineStrike.R (rev 0)
+++ pkg/R/CSPThreeLineStrike.R 2020-02-01 21:27:44 UTC (rev 36)
@@ -0,0 +1,30 @@
+CSPThreeLineStrike <- function(TS, n=25, minbodysizeMedian=.5) {
+ if (!is.OC(TS)) {
+ stop("Price series must contain Open and Close.")
+ }
+ LAGTS <- LagOC(TS,k=0:3) # lags 0, 1, 2, 3 periods
+ Cl_LAGTS <- Cl(LAGTS)
+ Op_LAGTS <- Op(LAGTS)
+ THREELWCB <- CSPNLongWhiteCandleBodies(TS, N=3, n=n, threshold=minbodysizeMedian)
+ LAGTHREELWCB <- stats::lag(THREELWCB, 1)
+ THREELBCB <- CSPNLongBlackCandleBodies(TS, N=3, n=n, threshold=minbodysizeMedian)
+ LAGTHREELBCB <- stats::lag(THREELBCB, 1)
+ BullTLS <- reclass(
+ LAGTHREELWCB[,1] & # first 3 candles are long and white
+ Cl_LAGTS[,3] > Cl_LAGTS[,4] & # close of 2nd candle higher than close of 1st
+ Cl_LAGTS[,2] > Cl_LAGTS[,3] & # close of 3rd candle higher than close of 2nd
+ Op_LAGTS[,1] >= Cl_LAGTS[,2] & # open of last candle higher or equal than close of 3rd
+ Cl_LAGTS[,1] <= Op_LAGTS[,4], # close of last candle lower than opening of 1st
+ TS)
+ BearTLS <- reclass(
+ LAGTHREELBCB[,1] & # first 3 candles are long and black
+ Cl_LAGTS[,3] < Cl_LAGTS[,4] & # close of 2nd candle lower than close of 1st
+ Cl_LAGTS[,2] < Cl_LAGTS[,3] & # close of 3rd candle lower than close of 2nd
+ Op_LAGTS[,1] <= Cl_LAGTS[,2] & # open of last candle lower or equal than close of 3rd
+ Cl_LAGTS[,1] >= Op_LAGTS[,4], # close of last candle higher than opening of 1st
+ TS)
+ result <- cbind(BullTLS, BearTLS)
+ colnames(result) <- c("Bull.ThreeLineStrike", "Bear.ThreeLineStrike")
+ xtsAttributes(result) <- list(bars=4)
+ return(result)
+}
Modified: pkg/R/CSPThreeMethods.R
===================================================================
--- pkg/R/CSPThreeMethods.R 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/R/CSPThreeMethods.R 2020-02-01 21:27:44 UTC (rev 36)
@@ -6,7 +6,7 @@
LAG3TS <- LagOC(TS, k=3)
LAG1TS <- LagOC(TS, k=1)
MAXOP <- stats::lag(runMax(Op(TS), n=3), k=1) # max open for middle 3 candles
- MAXCL <- stats::ag(runMax(Cl(TS), n=3), k=1) # max close for middle 3 candles
+ MAXCL <- stats::lag(runMax(Cl(TS), n=3), k=1) # max close for middle 3 candles
MINOP <- stats::lag(runMin(Op(TS), n=3), k=1) # min open for middle 3 candles
MINCL <- stats::lag(runMin(Cl(TS), n=3), k=1) # min close for middle 3 candles
LC4 <- CSPLongCandleBody(LAG4TS, n=n, threshold=threshold)
Modified: pkg/man/CSPDarkCloudCover.Rd
===================================================================
--- pkg/man/CSPDarkCloudCover.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPDarkCloudCover.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -37,4 +37,3 @@
CSPDarkCloudCover(YHOO) & TrendDetectionChannel(lag(YHOO,k=2))[,"UpTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPDoji.Rd
===================================================================
--- pkg/man/CSPDoji.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPDoji.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -28,7 +28,6 @@
\url{http://www.candlesticker.com/Bearish.asp}
}
\note{The function filters candles that look like dojis, without considering the current trend direction. If only doji patterns in a uptrend should be filtered, a external trend detection function must be used. See examples.}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -43,4 +42,3 @@
CSPDoji(YHOO)[,"GravestoneDoji"] & TrendDetectionChannel(YHOO)[,"UpTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPEngulfing.Rd
===================================================================
--- pkg/man/CSPEngulfing.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPEngulfing.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -30,7 +30,6 @@
\url{http://www.candlesticker.com/Bearish.asp}
}
\note{The function filters patterns that look like engulfing pattern, without considering the current trend direction. If only pattern in uptrends/downtrends should be filtered, a external trend detection function must be used. See examples.}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -38,4 +37,3 @@
CSPEngulfing(YHOO)[,"Bear.Engulfing"] & TrendDetectionChannel(YHOO)[,"UpTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPGap.Rd
===================================================================
--- pkg/man/CSPGap.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPGap.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -21,9 +21,7 @@
\item{GapDown}{TRUE if gap down detected}
}
\author{Andreas Voellenklee}
-\references{}
\note{The up/down gaps are also called \emph{Rising Window}/\emph{Falling Window}}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -31,4 +29,3 @@
CSPGap(YHOO, ignoreShadows=TRUE) # examine only candle bodies
}
}
-\keyword{}
Modified: pkg/man/CSPHammer.Rd
===================================================================
--- pkg/man/CSPHammer.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPHammer.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -40,4 +40,3 @@
CSPHammer(YHOO) & TrendDetectionChannel(YHOO)[,"DownTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPHarami.Rd
===================================================================
--- pkg/man/CSPHarami.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPHarami.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -40,5 +40,4 @@
BullHarami <- CSPHarami(YHOO)[,"Bull.Harami"] &
TrendDetectionChannel(lag(YHOO,k=2))[,"DownTrend"]
}
-}
-\keyword{}
+}
\ No newline at end of file
Modified: pkg/man/CSPInsideDay.Rd
===================================================================
--- pkg/man/CSPInsideDay.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPInsideDay.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -28,8 +28,6 @@
\url{http://www.investopedia.com/terms/i/inside_day.asp#axzz1jWelu1cm}\cr
\url{http://www.investopedia.com/terms/o/outside-days.asp#axzz1jWelu1cm}
}
-\note{}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -37,4 +35,3 @@
CSPOutsideDay(YHOO)
}
}
-\keyword{}
Modified: pkg/man/CSPInvertedHammer.Rd
===================================================================
--- pkg/man/CSPInvertedHammer.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPInvertedHammer.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -41,4 +41,3 @@
CSPInvertedHammer(YHOO) & TrendDetectionChannel(YHOO)[,"DownTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPKicking.Rd
===================================================================
--- pkg/man/CSPKicking.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPKicking.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -53,4 +53,3 @@
CSPKicking(YHOO)
}
}
-\keyword{}
Modified: pkg/man/CSPLongCandle.Rd
===================================================================
--- pkg/man/CSPLongCandle.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPLongCandle.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -39,8 +39,6 @@
\item{ShortBlackCandleBody}{TRUE if Short Black Candle Body detected}
}
\author{Andreas Voellenklee}
-\references{}
-\note{}
\seealso{\code{\link{CandleLength}}, \code{\link{CSPNLongCandles}}}
\examples{
\dontrun{
@@ -50,5 +48,4 @@
CSPLongCandleBody(YHOO)
CSPShortCandleBody(YHOO)
}
-}
-\keyword{}
+}
\ No newline at end of file
Modified: pkg/man/CSPMarubozu.Rd
===================================================================
--- pkg/man/CSPMarubozu.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPMarubozu.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -49,4 +49,3 @@
CSPMarubozu(YHOO, maxuppershadowCL=0)[,"WhiteMarubozu"]
}
}
-\keyword{}
Modified: pkg/man/CSPNBlended.Rd
===================================================================
--- pkg/man/CSPNBlended.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPNBlended.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -8,8 +8,6 @@
\item{TS}{xts Time Series containing OHLC prices}
\item{N}{number of bars to combine into one bar}
}
-\details{
-}
\value{
A xts object containing the columns:
\item{<N>.Blended.Open}{Opening price of the \code{N}-th elapsed candle}
@@ -18,8 +16,6 @@
\item{<N>.Blended.Close}{Close price of the current candle}
}
\author{Andreas Voellenklee}
-\references{
-}
\note{This function is used by \code{\link{addPriceInfo}} to add price information of detected candlestick patterns}
\seealso{
\code{\link{addPriceInfo}}
@@ -29,5 +25,4 @@
getSymbols("YHOO", adjust=TRUE)
CSPNBlended(YHOO, N=3) # combine 3 candles into one
}
-}
-\keyword{}
\ No newline at end of file
+}
\ No newline at end of file
Modified: pkg/man/CSPNHigherClose.Rd
===================================================================
--- pkg/man/CSPNHigherClose.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPNHigherClose.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -19,10 +19,6 @@
\item{<N>LowerClose}{TRUE if current close is the \code{N}th lower close in a row}
}
\author{Andreas Voellenklee}
-\references{
-}
-\note{}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -30,4 +26,3 @@
CSPNLowerClose(YHOO, N=4) # filter for 4 consecutive lower close
}
}
-\keyword{}
Modified: pkg/man/CSPNLongWhiteCandles.Rd
===================================================================
--- pkg/man/CSPNLongWhiteCandles.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPNLongWhiteCandles.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -18,7 +18,6 @@
\item{n}{number of preceding candles to calculate median candle length}
\item{threshold}{minimum/maximum candle length in relation to the median candle length of \code{n} preceding candles}
}
-\details{}
\value{
A xts object containing the columns:
\item{<N>LongWhiteCandles}{TRUE if current candle is the \code{N}-th consecutive long white candle}
@@ -27,9 +26,6 @@
\item{<N>LongBlackCandleBodies}{TRUE if current candle is the \code{N}-th consecutive long black candle body}
}
\author{Andreas Voellenklee}
-\references{
-}
-\note{}
\seealso{
\code{\link{CSPLongCandle}}
\code{\link{CSPLongCandleBody}}
@@ -43,4 +39,3 @@
CSPNLongBlackCandleBodies(YHOO, N=4, n=50, threshold=1.2)
}
}
-\keyword{}
Modified: pkg/man/CSPPiercingPattern.Rd
===================================================================
--- pkg/man/CSPPiercingPattern.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPPiercingPattern.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -37,4 +37,3 @@
CSPPiercingPattern(YHOO) & TrendDetectionChannel(lag(YHOO,k=2))[,"DownTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPStar.Rd
===================================================================
--- pkg/man/CSPStar.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPStar.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -48,4 +48,3 @@
TrendDetectionChannel(lag(YHOO,k=3))[,"DownTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPStomach.Rd
===================================================================
--- pkg/man/CSPStomach.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPStomach.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -30,7 +30,6 @@
\url{http://www.thepatternsite.com/BelowStomach.html}
}
\note{The function filters patterns that look like above/below the Stomach, without considering the current trend direction. If only above the Stomach pattern in downtrends should be filtered, a external trend detection function must be used. See examples.}
-\seealso{}
\examples{
\dontrun{
getSymbols('YHOO',adjust=TRUE)
@@ -40,4 +39,3 @@
CSPStomach(YHOO)[,"AboveTheStomach"] & TrendDetectionChannel(lag(YHOO,k=2))[,"DownTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPTasukiGap.Rd
===================================================================
--- pkg/man/CSPTasukiGap.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPTasukiGap.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -42,4 +42,3 @@
CSPTasukiGap(SSRI)[,"UpsideTasukiGap"] & TrendDetectionChannel(lag(SSRI,k=3))[,"UpTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPThreeBlackCrows.Rd
===================================================================
--- pkg/man/CSPThreeBlackCrows.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPThreeBlackCrows.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -31,6 +31,7 @@
\code{\link{ThreeWhiteSoldiers}}
\code{\link{CSPNLongBlackCandles}}
\code{\link{CSPNLongBlackCandleBodies}}
+ \code{\link{CSPThreeLineStrike}}
}
\examples{
\dontrun{
@@ -46,4 +47,3 @@
colSums(ThreeBlackCrows, na.rm=TRUE)
}
}
-\keyword{}
Added: pkg/man/CSPThreeLineStrike.Rd
===================================================================
--- pkg/man/CSPThreeLineStrike.Rd (rev 0)
+++ pkg/man/CSPThreeLineStrike.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -0,0 +1,61 @@
+\name{CSPThreeLineStrike}
+\alias{CSPThreeLineStrike}
+\alias{ThreeLineStrike}
+\title{Three Line Strike Candlestick Pattern}
+\description{Look for bullish and bearish Three Line Strike Patterns in a Open/Close price series}
+\usage{
+ CSPThreeLineStrike(TS, n=25, minbodysizeMedian=.5)
+}
+\arguments{
+ \item{TS}{xts Time Series containing Open and Close prices}
+ \item{n}{number of preceding candles to calculate median candle length}
+ \item{minbodysizeMedian}{minimum candle length in relation to the median candle length of \code{n} preceding candles}
+}
+\details{
+ Number of candle lines: \bold{4}\cr
+
+ For the bullish Three Line Strike, the first three candles must all be white with not too small candle bodies. The close of the second candle is above the close of the first. The close of the third candle is above the close of the second. The open of the last candle is at or above the close of the third candle, then in the same period the price moves down heavily and closes at or below the open of the first candle.\cr
+
+ The bearish Three Line Strike is the opposite, with three black candles followed by a long white candle.\cr
+
+ This formation is very rare.
+}
+\value{
+ A xts object containing the column:
+ \item{Bull.ThreeLineStrike}{TRUE if bullish Three Line Strike pattern detected}
+ \item{Bear.ThreeLineStrike}{TRUE if bearish Three Line Strike pattern detected}
+}
+\author{Andreas Voellenklee}
+\references{
+The following site(s) were used to code/document this indicator:\cr
+ \url{https://hitandruncandlesticks.com/bullish-three-line-strike/}\cr
+ \url{https://hitandruncandlesticks.com/bearish-three-line-strike/}\cr
+ \url{http://thepatternsite.com/ThreeLineStrikeBull.html}
+}
+\note{The function filters patterns that look like three line strikes, without considering the current trend direction. If only pattern in uptrends or downtrends should be filtered, a external trend detection function must be used. See examples.}
+\seealso{
+ \code{\link{CSPNLongWhiteCandleBodies}}
+ \code{\link{CSPNLongBlackCandleBodies}}
+}
+\examples{
+\dontrun{
+ Sys.setenv(TZ="UTC")
+
+ getSymbols('COG')
+ TLS <- CSPThreeLineStrike(COG)
+
+ # how often does that occur?
+ colSums(TLS, na.rm=TRUE)
+
+ # when did that occur?
+ TLS[TLS[,1]>0 | TLS[,2]>0,]
+
+ # filter for bearish three line strikes that occur in downtrends
+ TLS1 <- CSPThreeLineStrike(COG)[,"Bear.ThreeLineStrike"] &
+ TrendDetectionChannel(lag(COG,k=4))[,"DownTrend"]
+ TLS1[TLS1[,1]>0,]
+
+ # show in a chart
+ chartSeries(COG["2014-09/2014-10"])
+}
+}
Modified: pkg/man/CSPThreeMethods.Rd
===================================================================
--- pkg/man/CSPThreeMethods.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPThreeMethods.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -34,7 +34,6 @@
\url{http://www.candlesticker.com/Bearish.asp}
}
\note{The function filters patterns that look like three methods, without considering the current trend direction. If only pattern in uptrends should be filtered, a external trend detection function must be used. See examples.}
-\seealso{}
\examples{
\dontrun{
getSymbols('URZ',adjust=TRUE)
@@ -44,4 +43,3 @@
CSPThreeMethods(URZ)[,"RisingThreeMethods"] & TrendDetectionChannel(lag(URZ,k=5))[,"UpTrend"]
}
}
-\keyword{}
Modified: pkg/man/CSPThreeWhiteSoldiers.Rd
===================================================================
--- pkg/man/CSPThreeWhiteSoldiers.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CSPThreeWhiteSoldiers.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -31,6 +31,7 @@
\code{\link{ThreeBlackCrows}}
\code{\link{CSPNLongWhiteCandles}}
\code{\link{CSPNLongWhiteCandleBodies}}
+ \code{\link{CSPThreeLineStrike}}
}
\examples{
\dontrun{
@@ -46,4 +47,4 @@
colSums(ThreeWhiteSoldiers, na.rm=TRUE)
}
}
-\keyword{}
+
Modified: pkg/man/CandleAverage.Rd
===================================================================
--- pkg/man/CandleAverage.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CandleAverage.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -24,10 +24,6 @@
\item{HLC_Average}{}
\item{HL_Average}{}
}
-\note{
-}
-\seealso{
-}
\examples{
\dontrun{
# calculate average prices for a daily OHLC price series
@@ -37,5 +33,4 @@
HL_Average(YHOO)))
}
}
-\author{Andreas Voellenklee}
-\keyword{}
+\author{Andreas Voellenklee}
\ No newline at end of file
Modified: pkg/man/CandleLength.Rd
===================================================================
--- pkg/man/CandleLength.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/CandleLength.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -19,8 +19,6 @@
\item{absCandleLength}{candle length from low to high}
}
\author{Andreas Voellenklee}
-\references{}
-\note{}
\seealso{\code{\link{CSPLongCandle}}}
\examples{
\dontrun{
@@ -29,4 +27,3 @@
CandleBodyLength(YHOO)
}
}
-\keyword{}
Modified: pkg/man/DonchianChannel2.Rd
===================================================================
--- pkg/man/DonchianChannel2.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/DonchianChannel2.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -34,7 +34,7 @@
\author{ G See }
\references{
The following site(s) were used to code/document this indicator:\cr
- \url{http://www.linnsoft.com/tour/techind/donch.htm}\cr
+ \url{https://www.investopedia.com/terms/d/donchianchannels.asp}\cr
}
\seealso{
See \code{\link{DonchianChannel}}.
Modified: pkg/man/LagOC.Rd
===================================================================
--- pkg/man/LagOC.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/LagOC.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -31,4 +31,3 @@
}
}
\author{Andreas Voellenklee}
-\keyword{}
Modified: pkg/man/LagOHLC.Rd
===================================================================
--- pkg/man/LagOHLC.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/LagOHLC.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -31,4 +31,3 @@
}
}
\author{Andreas Voellenklee}
-\keyword{}
Modified: pkg/man/TrendDetectionChannel.Rd
===================================================================
--- pkg/man/TrendDetectionChannel.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/TrendDetectionChannel.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -19,9 +19,6 @@
\item{Trend}{+1 for uptrend, 0 for sideward trend, -1 for downtrend}
}
\author{Andreas Voellenklee}
-\references{
-}
-\note{}
\seealso{\code{\link{TrendDetectionSMA}}}
\examples{
\dontrun{
@@ -40,4 +37,3 @@
colSums(Hammer, na.rm=TRUE)
}
}
-\keyword{}
Modified: pkg/man/TrendDetectionSMA.Rd
===================================================================
--- pkg/man/TrendDetectionSMA.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/TrendDetectionSMA.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -18,11 +18,8 @@
\item{Trend}{+1 for uptrend, 0 for sideward trend, -1 for downtrend}
}
\author{Andreas Voellenklee}
-\references{
-}
-\note{}
\seealso{
-\code{\link{TrendDetectionChannel}}
+ \code{\link{TrendDetectionChannel}}
}
\examples{
\dontrun{
@@ -41,4 +38,3 @@
colSums(Hammer, na.rm=TRUE)
}
}
-\keyword{}
Modified: pkg/man/addPriceInfo.Rd
===================================================================
--- pkg/man/addPriceInfo.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/addPriceInfo.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -21,9 +21,6 @@
\item{Foramtion.Close}{Close price of the detected candlestick formation}
}
\author{Andreas Voellenklee}
-\references{
-}
-\note{}
\seealso{
\code{\link{CSPNBlended}}
}
@@ -38,4 +35,3 @@
addPriceInfo(YHOO, CSPEngulfing(YHOO))
}
}
-\keyword{}
Modified: pkg/man/candlesticks-package.Rd
===================================================================
--- pkg/man/candlesticks-package.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/candlesticks-package.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -31,11 +31,9 @@
}
\keyword{ package }
\note{
-All candlestick pattern detection functions \code{(CSP*)} preserve the xts time series' attributes and add one attribute \code{bars}, that represents the number of bars the formation consists of.
-}
-\seealso{
+All candlestick pattern detection functions \code{(CSP*)} preserve the xts time series' attributes and add one attribute \code{bars}, that represents the number of bars the formation consists of.\cr
-}
-\examples{
+The timezone of the R session should be set to UTC to prevent issues with internal lag functions.
+\code{Sys.setenv(TZ="UTC")}
}
Modified: pkg/man/isOC.Rd
===================================================================
--- pkg/man/isOC.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/isOC.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -27,4 +27,3 @@
}
}
\author{Andreas Voellenklee}
-\keyword{}
Modified: pkg/man/nextCandlePosition.Rd
===================================================================
--- pkg/man/nextCandlePosition.Rd 2019-02-22 18:58:09 UTC (rev 35)
+++ pkg/man/nextCandlePosition.Rd 2020-02-01 21:27:44 UTC (rev 36)
@@ -33,5 +33,4 @@
nextCandlePosition(YHOO)[,"LowerClose"]
}
}
-\author{Andreas Voellenklee}
-\keyword{}
+\author{Andreas Voellenklee}
\ No newline at end of file
More information about the Candlesticks-commits
mailing list