Learn R Programming

cryptoQuotes (version 1.3.0)

kline: Candlestick chart

Description

[Experimental]

Candlestick charts are highly visual and provide a quick and intuitive way to assess market sentiment and price action. Traders and analysts use them in conjunction with other technical analysis tools to make informed trading decisions. These charts are particularly useful for identifying key support and resistance levels, trend changes, and potential entry and exit points in financial markets.

Usage

kline(internal = list())

Value

A plotly::plot_ly()-object wrapped in rlang::expr().

Arguments

internal

An empty list. Used for internal purposes. Ignore.

Author

Serkan Korkmaz

See Also

Other price charts: chart(), ohlc()

Examples

Run this code
# script: scr_charting
# date: 2023-10-25
# author: Serkan Korkmaz, serkor1@duck.com
# objective: Charting in general
# script start;

## charting the klines
## with indicators as
## subcharts
chart(
  ticker     = BTC,
  main       = kline(),
  sub        = list(
    volume(),
    macd()
  ),
  indicator = list(
    bollinger_bands(),
    sma(),
    alma()
  ),
  options = list(
    dark = TRUE,
    deficiency = FALSE
  )
)

## charting the MACD-indicator
## with klines as subcharts
chart(
  ticker     = BTC,
  main       = macd(),
  sub        = list(
    volume(),
    kline()
  ),
  indicator = list(
    bollinger_bands(),
    sma()
  ),
  options = list(
    dark = TRUE,
    deficiency = FALSE
  )
)

# script end;

Run the code above in your browser using DataLab