Description Usage Arguments Details Value Note Author(s) References See Also Examples
View source: R/CSPThreeOutside.R
Look for Three Outside Up/Down Pattern in a Open/Close price series.
1 | CSPThreeOutside(TS)
|
TS |
xts Time Series containing Open and Close Prices |
Number of candle lines: 3
Three Outside Up:
The market is in downtrend. The first two days of this pattern is the Bullish Engulfing Pattern, and the third day confirms the reversal suggested by the Bullish Engulfing Pattern, since it is a white candlestick closing with a new high for the last three days.
Three Outside Down:
The market is in uptrend. The first two days of this pattern is the Bearish Engulfing Pattern, and the third day confirms the reversal suggested by the Bearish Engulfing Pattern, since it is a black candlestick closing with a new low for the last three days.
A xts object containing the columns:
ThreeOutsideUp |
TRUE if Three Outside Up pattern detected |
ThreeOutsideDown |
TRUE if Three Outside Down pattern detected |
The function filters patterns that look like three outside 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)
CSPThreeOutside(YHOO)
# filter three outside up in downtrends
CSPThreeOutside(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.