lines_ohlc: Add candles to active time series plot

Description Usage Arguments Details See Also

View source: R/lines_ohlc.R

Description

Add candles to active time series plot

Usage

1
2
lines_ohlc(x = 1:nrow(ohlc), ohlc, width = 0.3, candle.col.up = "blue",
  candle.col.dn = "red", ch = TRUE)

Arguments

x

location coordinates

ohlc

time_series data.frame or data.table object with 4 columns 'open','high','low','close'

width

width of candles body

candle.col.up, candle.col.dn

colors of up and down candles

ch

use Chinese style?

Details

Used in plot_ts internally.

See Also

Other graphical functions: add_last_values, add_legend, distinct_colors, empty_plot, hist_dt, lines_stacked_hist, multi_heatmap, plot_table, plot_ts


QuantTools documentation built on Oct. 23, 2020, 7:54 p.m.