CSPNHigherClose {candlesticks}R Documentation

N consecutive higher/lower close prices

Description

look for N consecutive higher/lower close prices

Usage

CSPNHigherClose(TS, N)
CSPNLowerClose(TS, N)

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

## 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)

[Package candlesticks version 0.2-9 Index]