Description Usage Arguments Value Note Author(s) See Also Examples
This function calculates OHLC prices of a combined candle of N bars.
1 | 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
1 2 3 4 5 | ## Not run:
getSymbols("YHOO", adjust=TRUE)
CSPNBlended(YHOO, N=3) # combine 3 candles into one
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.