CSPGap: Gap Candlestick Pattern

Description Usage Arguments Details Value Note Author(s) Examples

Description

Look for price gaps between two candles in a OHLC price series

Usage

1
CSPGap(TS, ignoreShadows=FALSE)

Arguments

TS

xts Time Series containing OHLC prices

ignoreShadows

if TRUE, only Open and Close Price are evaluated. Hi and Low are ignored.

Details

Number of candle lines: 2
When ignoreShadows=FALSE a gap up occurs when the candle's low is higher than the precedent candles's high.
When ignoreShadows=TRUE a gap up occurs when the candle's open is higher than the precedent candles's body.

Value

A xts object containing the columns:

GapUp

TRUE if gap up detected

GapDown

TRUE if gap down detected

Note

The up/down gaps are also called Rising Window/Falling Window

Author(s)

Andreas Voellenklee

Examples

1
2
3
4
5
6
## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  CSPGap(YHOO) # examine whole candle lenght
  CSPGap(YHOO, ignoreShadows=TRUE) # examine only candle bodies

## End(Not run)

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