Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/CSPThreeInside.R
Look for Three Inside Up/Down Pattern in a OHLC price series.
1 | CSPThreeInside(TS)
|
TS |
xts Time Series containing Open, High, Low and Close Prices |
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.
A xts object containing the columns:
ThreeInsideUp |
TRUE if Three Inside Up pattern detected |
ThreeInsideDown |
TRUE if Three Inside Down pattern detected |
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.
Andreas Voellenklee
The following site(s) were used to code/document this candlestick pattern:
http://www.candlesticker.com/Bullish.asp
http://www.candlesticker.com/Bearish.asp
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.