adjust_ohlc | R Documentation |
Adjust the first four columns of OHLC data using the "adjusted" price column.
adjust_ohlc(ohlc)
ohlc |
An OHLC time series of prices in xts format. |
Adjusts the first four OHLC price columns by multiplying them by the ratio of the "adjusted" (sixth) price column, divided by the Close (fourth) price column.
An OHLC time series with the same dimensions as the input series.
# Adjust VTI prices
VTI <- rutils::adjust_ohlc(rutils::etfenv$VTI)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.