CandleLength: Candle (Body) Length

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

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)


Search within the candlesticks package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.