CandleLength {candlesticks}R Documentation

Candle (Body) Length

Description

relative and absolute length of a price candle

Usage

  CandleLength(TS)
  CandleBodyLength(TS)

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

## Not run: 
  getSymbols('YHOO',adjust=TRUE)
  CandleLength(YHOO)
  CandleBodyLength(YHOO)

## End(Not run)

[Package candlesticks version 0.2-9 Index]