CSPThreeInside: Three Inside Up/Down Candlestick Pattern

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

View source: R/CSPThreeInside.R

Description

Look for Three Inside Up/Down Pattern in a OHLC price series.

Usage

1

Arguments

TS

xts Time Series containing Open, High, Low and Close Prices

Details

Number of candle lines: 3

Three Inside Up:
The market is in downtrend. The first two days of this pattern is the Bullish Harami Pattern, and the third day confirms the reversal suggested by the Bullish Harami Pattern, since it is a white candlestick closing with a new high for the last three days.

Three Inside Down:
The market is in uptrend. The first two days of this pattern is the Bearish Harami Pattern, and the third day confirms the reversal suggested by the Bearish Harami Pattern, since it is a black candlestick closing with a new low for the last three days.

Value

A xts object containing the columns:

ThreeInsideUp

TRUE if Three Inside Up pattern detected

ThreeInsideDown

TRUE if Three Inside Down pattern detected

Note

The function filters patterns that look like three inside up/down, without considering the current trend direction. If only pattern in 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://www.candlesticker.com/Bullish.asp
http://www.candlesticker.com/Bearish.asp

See Also

CSPHarami CSPThreeOutside

Examples

1
2
3
4
5
6
7
8
## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  CSPThreeInside(YHOO)
  
  # filter three inside up in downtrends
  CSPThreeInside(YHOO)[,"ThreeInsideUp"] & TrendDetectionChannel(lag(YHOO,k=3))[,"DownTrend"]

## End(Not run)

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