CSPInsideDay: Inside / Outside Day

Description Usage Arguments Details Value Author(s) References Examples

View source: R/CSPInsideDay.R

Description

Look for inside days and outside days in a OHLC price series

Usage

1
2

Arguments

TS

xts Time Series containing OHLC prices

Details

Number of candle lines: 2

Inside Day:
In an inside day, the bar remains within the previous day's bar high and low.

Outside Day:
In an outside day, the bar's high is higher than the previous day's bar high and the low lower than the previous day's low.

Value

A xts object containing the column:

InsideDay

TRUE if current candle is a inside day

OutsideDay

TRUE if current candle is a outside day

Author(s)

Andreas Voellenklee

References

The following site(s) were used to code/document this indicator:
http://www.investopedia.com/terms/i/inside_day.asp#axzz1jWelu1cm
http://www.investopedia.com/terms/o/outside-days.asp#axzz1jWelu1cm

Examples

1
2
3
4
5
6
## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  CSPInsideDay(YHOO)
  CSPOutsideDay(YHOO)

## End(Not run)

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