CandleLength: Candle (Body) Length

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/CandleLength.R

Description

relative and absolute length of a price candle

Usage

1
2

Arguments

TS

xts Time Series containing High and Low Prices for CandleLength
xts Time Series containing Open and Close Prices for CandleBodyLength

Details

Both a relative candle length (Hi-Lo)/(Hi+Lo)/2 and the absolute length (Hi-Lo) is calculated.

Value

A xts object containing the columns:

relCandleLength

candle length / midpoint of candle

absCandleLength

candle length from low to high

Author(s)

Andreas Voellenklee

See Also

CSPLongCandle

Examples

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

## End(Not run)

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