CSPEngulfing: Engulfing Candlestick Pattern

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

View source: R/CSPEngulfing.R

Description

Look for Bullish/Bearish Engulfing Pattern in a Open/Close price series

Usage

1

Arguments

TS

xts Time Series containing Open and Close prices

Details

Number of candle lines: 2

Bullish Engulfing Pattern:
Prior trend: down
Bullish Engulfing Pattern is a pattern characterized by a large white real body engulfing a preceding small black real body, which appears during a downtrend. The white body does not necessarily engulf the shadows of the black body but totally engulfs the body itself.

Bearish Engulfing Pattern:
Prior trend: up
Bearish Engulfing Pattern is a large black real body, which engulfs a small white real body in an uptrend. The black body does not necessarily engulf the shadows of the white body but totally engulfs the body itself.

Value

A xts object containing the columns:

Bull.Engulfing

TRUE if bullish engulfing pattern detected

Bear.Engulfing

TRUE if bearish engulfing pattern detected

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.

Author(s)

Andreas Voellenklee

References

The following site(s) were used to code/document this candlestick pattern:
http://thepatternsite.com/BullEngulfing.html
http://www.onlinetradingconcepts.com/TechnicalAnalysis/Candlesticks/BullishEngulfing.html
http://www.candlesticker.com/Bullish.asp
http://www.candlesticker.com/Bearish.asp

Examples

1
2
3
4
5
6
## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  CSPEngulfing(YHOO)
  CSPEngulfing(YHOO)[,"Bear.Engulfing"] & TrendDetectionChannel(YHOO)[,"UpTrend"]

## End(Not run)

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