CSPInvertedHammer {candlesticks} | R Documentation |
Look for Inverted Hammer Pattern in a OHLC price series
CSPInvertedHammer(TS, minuppershadowCL=2/3, maxlowershadowCL=.1, minbodyCL=.1)
TS |
xts Time Series containing Open, High, Low and Close Prices |
minuppershadowCL |
minimum upper shadow to candle length ratio |
maxlowershadowCL |
maximum tolerated lower shadow to candle length ratio |
minbodyCL |
minimum body to candle length ratio |
Number of candle lines: 1
The inverted hammer has got a long upper shadow, a small body at the bottom of the candle, and no or only a very short lower shadow.Hammer
.
A xts object containing the column:
InvertedHammer |
TRUE if inverted hammer pattern detected |
The function filters candles that look like inverted hammers, without considering the current trend direction. If only inverted hammer patterns in a uptrend 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 candlestick pattern:
http://stockcharts.com/school/doku.php?id=chart_school:chart_analysis:introduction_to_candlesticks
CSPDoji
CSPHammer
TrendDetectionChannel
TrendDetectionSMA
## Not run: getSymbols('YHOO',adjust=TRUE) # filter for hanging man patterns CSPInvertedHammer(YHOO) # filter for hanging man patterns that occur in downtrends CSPInvertedHammer(YHOO) & TrendDetectionChannel(YHOO)[,"DownTrend"] ## End(Not run)