Description Usage Arguments Details Value Note Author(s) References See Also Examples
Look for Upside/Downside Tasuki Gap Pattern in a OHLC price series
1 | CSPTasukiGap(TS)
|
TS |
xts Time Series containing OHLC prices |
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.
A xts object containing the columns:
UpsideTasukiGap |
TRUE if Upside Tasuki Gap pattern detected |
DownsideTasukiGap |
TRUE if Downside Tasuki Gap pattern detected |
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.
Andreas Voellenklee
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
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.