CSPNHigherClose: N consecutive higher/lower close prices

Description Usage Arguments Details Value Author(s) Examples

Description

look for N consecutive higher/lower close prices

Usage

1
2

Arguments

TS

xts Time Series containing Close prices

N

number of candles to test for higher/lower close series

Details

Only the close price is evaluated. The colors of the candles are ignored.

Value

A xts object containing the column:

<N>HigherClose

TRUE if current close is the Nth higher close in a row

<N>LowerClose

TRUE if current close is the Nth lower close in a row

Author(s)

Andreas Voellenklee

Examples

1
2
3
4
5
6
## 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)

candlesticks documentation built on Feb. 2, 2020, 3:01 a.m.