CSPNLongWhiteCandles {candlesticks} | R Documentation |
look for N consecutive long candles / long candle bodies of same color
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
## 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)