CSPInvertedHammer: Inverted Hammer Candlestick Pattern

Description Usage Arguments Details Value Note Author(s) References See Also Examples

View source: R/CSPInvertedHammer.R

Description

Look for Inverted Hammer Pattern in a OHLC price series

Usage

1
CSPInvertedHammer(TS, minuppershadowCL=2/3, maxlowershadowCL=.1, minbodyCL=.1)

Arguments

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

Details

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.

Value

A xts object containing the column:

InvertedHammer

TRUE if inverted hammer pattern detected

Note

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.

Author(s)

Andreas Voellenklee

References

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

See Also

CSPDoji CSPHammer TrendDetectionChannel TrendDetectionSMA

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## 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)

candlesticks documentation built on Feb. 2, 2020, 3:01 a.m.