CSPNHigherClose {candlesticks} | R Documentation |
look for N consecutive higher/lower close prices
CSPNHigherClose(TS, N) CSPNLowerClose(TS, N)
TS |
xts Time Series containing Close prices |
N |
number of candles to test for higher/lower close series |
Only the close price is evaluated. The colors of the candles are ignored.
A xts object containing the column:
<N>HigherClose |
TRUE if current close is the |
<N>LowerClose |
TRUE if current close is the |
Andreas Voellenklee
## Not run: getSymbols('YHOO',adjust=TRUE) CSPNHigherClose(YHOO, N=3) # filter for 3 consecutive higher close CSPNLowerClose(YHOO, N=4) # filter for 4 consecutive lower close ## End(Not run)