CandleLength {candlesticks} | R Documentation |
relative and absolute length of a price candle
CandleLength(TS) CandleBodyLength(TS)
TS |
xts Time Series containing High and Low Prices for CandleLength |
Both a relative candle length (Hi-Lo)/(Hi+Lo)/2
and the absolute length (Hi-Lo)
is calculated.
A xts object containing the columns:
relCandleLength |
candle length / midpoint of candle |
absCandleLength |
candle length from low to high |
Andreas Voellenklee
## Not run: getSymbols('YHOO',adjust=TRUE) CandleLength(YHOO) CandleBodyLength(YHOO) ## End(Not run)