rtsplot.candle: Create Candle Plot

rtsplot.candleR Documentation

Create Candle Plot

Description

Plot candles if dx is sufficient otherwise ohlc or bars

Usage

rtsplot.candle(
  y,
  col = rtsplot.candle.col(y),
  border = rtsplot.theme()$col.border
)

Arguments

y

xts object

col

color for bars, defaults to rtsplot.candle.col

border

border color, defaults to rtsplot.theme()$col.border

Value

nothing

Examples

y = rtsplot.fake.stock.data(50, ohlc=TRUE)
symbol = 'SPY'
	
 # plot
 layout(1)
 rtsplot(y, type = 'n')
 rtsplot.candle(y)
rtsplot.legend(symbol, 'black', y)


rtsplot documentation built on Sept. 24, 2023, 1:07 a.m.