Learn R Programming

FinCal (version 0.6.3)

candlestickChart: 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.

Description

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.

Usage

candlestickChart(ohlc, start = NULL, end = NULL, main = "", ...)

Arguments

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

See Also

get.ohlc.yahoo

get.ohlc.google

Examples

Run this code
# 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)

Run the code above in your browser using DataLab