candlestickChart {FinCal} | R Documentation |
Technical analysts - Candlestick chart: show prices for each period as a continuous line. The box is clear if the closing price is higher than the opening price, or filled red if the closing is lower than the opening price.
candlestickChart(ohlc, start = NULL, end = NULL, main = "", ...)
ohlc |
output from get.ohlc.yahoo or get.ohlc.google |
start |
start date to plot, if not specified, all date in ohlc will be included |
end |
end date to plot |
main |
an overall title for the plot |
... |
Arguments to be passed to ggplot |
# google <- get.ohlc.yahoo("GOOG",start="2013-07-01",end="2013-08-01"); candlestickChart(google)
# apple <- get.ohlc.google("AAPL",start="2013-07-01",end="2013-08-01"); candlestickChart(apple)