CSPNBlended {candlesticks} | R Documentation |
This function calculates OHLC prices of a combined candle of N bars.
CSPNBlended(TS, N)
TS |
xts Time Series containing OHLC prices |
N |
number of bars to combine into one bar |
A xts object containing the columns:
<N>.Blended.Open |
Opening price of the |
<N>.Blended.High |
Highest high of the past |
<N>.Blended.Low |
Lowest low of the past |
<N>.Blended.Close |
Close price of the current candle |
This function is used by addPriceInfo
to add price information of detected candlestick patterns
Andreas Voellenklee
## Not run: getSymbols("YHOO", adjust=TRUE) CSPNBlended(YHOO, N=3) # combine 3 candles into one ## End(Not run)