Create OHLC bars based on more than just time. Currently, bars based on the following dimensions are supported:
timeOHLCV()
volumeOHLCV()
tickOHLCV()
dollarOHLCV()
as is converting a set of trades into one bar using oneBarOHLCV()
. The bars
contain additional columns compared to regular OHLCV data:
devtools::install_github('bobjansen/FancyBar')
On my machine, performance of creating time-based bars is slightly faster than
to.period()
in the
xts
package and
clearly faster than makeOHLCV()
in the
highfrequency
package.
The benchmarking script can be found in inst/benchmark.R
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.