CSPTasukiGap: Upside/Downside Tasuki Gap Candlestick Pattern

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

Description

Look for Upside/Downside Tasuki Gap Pattern in a OHLC price series

Usage

1

Arguments

TS

xts Time Series containing OHLC prices

Details

Number of candle lines: 3

Upside Tasuki Gap:
The market is in uptrend. The first candle of the formation is a white candle, followed by another white candle that has gapped above the high of the first candle. The third candle is a black candle that opens within the body of the second candle and closes within the gap between the first and second candle.

Downside Tasuki Gap:
The market is in downtrend. The first candle of the formation is a black candle, followed by another black candle that has gapped below the low of the first candle. The third candle is a white candle that opens within the body of the second candle and closes within the gap between the first and second candle.

Value

A xts object containing the columns:

UpsideTasukiGap

TRUE if Upside Tasuki Gap pattern detected

DownsideTasukiGap

TRUE if Downside Tasuki Gap pattern detected

Note

The function filters patterns that look like tasuki gap patterns, without considering the current trend direction. If only upside tasuki gaps in uptrends 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 indicator:
http://www.investopedia.com/terms/u/upside-tasuki-gap.asp#axzz1jtuDsM6i
http://www.investopedia.com/terms/d/downside-tasuki-gap.asp#axzz1jtuDsM6i
http://thepatternsite.com/UpsideTasukiGap.html
http://thepatternsite.com/DownsideTasukiGap.html

See Also

CSPGap

Examples

1
2
3
4
5
6
7
8
## Not run: 
  getSymbols("SSRI", adjust=TRUE)
  CSPTasukiGap(SSRI)

  # filter upside tasuki gaps in uptrends
  CSPTasukiGap(SSRI)[,"UpsideTasukiGap"] & TrendDetectionChannel(lag(SSRI,k=3))[,"UpTrend"]

## End(Not run)

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