Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

lines_ohlc

Add candles to active time series plot


Description

Add candles to active time series plot

Usage

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


QuantTools

Enhanced Quantitative Trading Modelling

v0.5.7.1
GPL-3
Authors
Stanislav Kovalevsky
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.