CSPThreeBlackCrows {candlesticks} | R Documentation |
Look for Three Black Crows in a Open/Close price series
CSPThreeBlackCrows(TS, strict=TRUE, n=20, minbodysizeMedian=1)
TS |
xts Time Series containing Open and Close prices |
strict |
if FALSE, use less strict conditions to detect pattern. See details. |
n |
number of preceding candles to calculate median candle length |
minbodysizeMedian |
minimum candle length in relation to the median candle length of |
Number of candle lines: 3
The market forms a uptrend. The pattern is characterized by three long candlesticks stepping downward like a staircase. In strict mode, the opening of each day is higher than the previous close but lower than the previous open. When strict=FALSE, candle 2 and/or 3 of the formation may open lower than the previous day's close, thus forming a gap.
A xts object containing the column:
ThreeBlackCrows |
TRUE if Three Black Crows pattern detected |
The function filters patterns that look like three black crows, without considering the current trend direction. If only pattern in uptrends should be filtered, a external trend detection function must be used. See examples.
Andreas Voellenklee
The following site(s) were used to code/document this indicator:
http://www.candlesticker.com/Bullish.asp
http://www.candlesticker.com/Bearish.asp
ThreeWhiteSoldiers
CSPNLongBlackCandles
CSPNLongBlackCandleBodies
CSPThreeLineStrike
## Not run: getSymbols('YHOO',adjust=TRUE) CSPThreeBlackCrows(YHOO) CSPThreeBlackCrows(YHOO, strict=FALSE) # filter for three black crows that occur in uptrends ThreeBlackCrows <- CSPThreeBlackCrows(YHOO) & TrendDetectionChannel(lag(YHOO,k=3))[,"UpTrend"] # how often does that occur? colSums(ThreeBlackCrows, na.rm=TRUE) ## End(Not run)