Skip to contents

[Experimental]

A high-level plotly::plot_ly()-function. The function adds a subchart with the trading trading.

Usage

volume(...)

Arguments

...

For internal use. Please ignore.

Value

An invisible plotly::plot_ly()-object.

See also

Other chart indicators: add_event(), alma(), bollinger_bands(), chart(), dema(), donchian_channel(), ema(), evwma(), fgi(), hma(), lsr(), macd(), rsi(), sma(), smi(), vwap(), wma(), zlema()

Other subchart indicators: add_event(), fgi(), lsr(), macd(), rsi(), smi()

Author

Serkan Korkmaz

Examples

# script start;

# 1) charting weekly
# BTC using candlesticks
# and indicators
cryptoQuotes::chart(
  ticker     = BTC,
  main       = cryptoQuotes::kline(),
  sub        = list(
    cryptoQuotes::volume(),
    cryptoQuotes::macd()
  ),
  indicator = list(
    cryptoQuotes::bollinger_bands(),
    cryptoQuotes::sma(),
    cryptoQuotes::alma()
  ),
  options = list(
    dark       = TRUE,
    deficiency = FALSE
  )
)
20k30k40k020k40k60k80kJan 2023Mar 2023May 2023Jul 2023Sep 2023Nov 2023051015
Indicators:1w BB(20, 2, SMA)SMA(10)ALMA(9)Ticker: BTC Market: Bybit (SPOT)Period: 2023-01-02 01:00:00 - 2023-12-25 01:00:00Click to enter X axis titleClick to enter Y axis titleClick to enter Y axis titleClick to enter Y axis titleVolumeMACD(12, 26, 9)
# script end;