CSPKicking: Kicking Candlestick Pattern

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

View source: R/CSPKicking.R

Description

Look for bullish/bearish Kicking Candlestick Patterns in a OHLC price series

Usage

1
  CSPKicking(TS, ignoreShadows=TRUE, n=20, threshold=1, ATRFactor=1, maxshadowCL=.1)

Arguments

TS

xts Time Series containing OHLC prices

ignoreShadows

if TRUE, only Open and Close Price are evaluated. Hi and Low are ignored.

n

number of preceding candles to calculate median candle length or average True Range

threshold

minimum candle length in relation to the median candle length of n preceding candles

ATRFactor

minimum size of candle body compared to the ATR

maxshadowCL

maximum tolerated upper and lower shadow to candle length ratio

Details

Number of candle lines: 2

Bullish Kicking Pattern:
The Bullish Kicking Pattern is a White Marubozu following a Black Marubozu. After the Black Marubozu, market gaps higher on the opening and it opens with a gap above the prior session's opening thus forming a White Marubozu. This pattern is filtered with the option ignoreShadows=FALSE, and occurs very scarcely. When ignoreShadows=FALSE, the parameters n, ATRFactor, maxshadowCL are relevant to fine tune the filter rules.

A less strict filter rule is when ignoreShadows=TRUE. In this case, the pattern is detected when a long black candle body follows a long white candle body, and the open of the first candle is lower than the open of the second candle. When ignoreShadows=TRUE, the parameters n and threshold are relevant to fine tune the filter rules.

Bearish Kicking Pattern:
Opposite of Bullish Kicking Pattern.

Value

A xts object containing the columns:

Bull.Kicking

TRUE if Bullish Kicking pattern detected

Bear.Kicking

TRUE if Bearish Kicking pattern detected

Note

Unlike most other candlestick patterns, the previous market direction is not important for this pattern.

Author(s)

Andreas Voellenklee

References

The following site(s) were used to code/document this indicator:
http://www.candlesticker.com/Bullish.asp
http://www.candlesticker.com/Bearish.asp

See Also

CSPLongCandleBody CSPMarubozu CSPGap

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  
  # look for Kicking Pattern right out of the textbook
  # they occur only once in a blue moon
  CSPKicking(YHOO, ignoreShadows=FALSE, maxshadowCL=0)
  
  # use less strict filter rules
  CSPKicking(YHOO)

## End(Not run)

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