candlesticks: Candlestick chart

Description Usage Arguments Author(s) Examples

View source: R/preciousFunctions.R

Description

Plots an interactive graph with the candlestick chart of a single cryptocurrency.

Usage

1
2
3
4
5
6
7
candlesticks(
  symbol = "BTC",
  currency = "USD",
  start = Sys.Date() - 30,
  end = Sys.Date(),
  option = "original"
)

Arguments

symbol

a character string of the symbol. Default is "BTC" for Bitcoin.

currency

a character string for the region of the currency. "USD", "EUR", "GBP"... Default is "USD" for US Dollar.

start

a date in "YYYY-MM-DD" format. Default is 30 days before today.

end

a date in "YYYY-MM-DD" format. Default is today.

option

a string : default is "original" and does not alter the data. Change to "norm" to normalize the graph between 0 and 1, 1 is the all-time-high. Change to "log" to obtain the logarithm of the graph.

Author(s)

Vincent KV contact@vincentkv.com

Examples

1
2
candlesticks()
candlesticks(symbol="LTC",currency="GBP",start="2019-09-01",end="2020-02-10")

VincentKV/Cryptics documentation built on Dec. 18, 2021, 6:18 p.m.