hlc {futile} | R Documentation |
This is a convenience method to convert an xts object containing OHLC time series data to a TTR-compatible matrix.
hlc(market)
market |
An xts object created by calling (quantmod) getSymbols. |
An object containing just the Hi, Low, Close values
See quantmod and TTR for more information on how data is constructed and used.
Brian Lee Yung Rowe
Quantmod, TTR
require(quantmod) getSymbols('IBM') ibm <- hlc(IBM)