Description Usage Arguments Value Author(s) See Also Examples
View source: R/CSPNLongCandles.R
look for N consecutive long candles / long candle bodies of same color
1 2 3 4 | CSPNLongWhiteCandles(TS, N=2, n=20, threshold=1)
CSPNLongBlackCandles(TS, N=2, n=20, threshold=1)
CSPNLongWhiteCandleBodies(TS, N=2, n=20, threshold=1)
CSPNLongBlackCandleBodies(TS, N=2, n=20, threshold=1)
|
TS |
xts Time Series containing OHLC prices |
N |
number of candles to test |
n |
number of preceding candles to calculate median candle length |
threshold |
minimum/maximum candle length in relation to the median candle length of |
A xts object containing the columns:
<N>LongWhiteCandles |
TRUE if current candle is the |
<N>LongBlackCandles |
TRUE if current candle is the |
<N>LongWhiteCandleBodies |
TRUE if current candle is the |
<N>LongBlackCandleBodies |
TRUE if current candle is the |
Andreas Voellenklee
CSPLongCandle
CSPLongCandleBody
1 2 3 4 5 6 7 8 | ## Not run:
getSymbols('YHOO',adjust=TRUE)
CSPNLongWhiteCandles(YHOO)
CSPNLongBlackCandles(YHOO, N=3)
CSPNLongWhiteCandleBodies(YHOO)
CSPNLongBlackCandleBodies(YHOO, N=4, n=50, threshold=1.2)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.