Skip to contents

[Experimental]

Volume indicators are technical analysis tools used to analyze trading volume, which represents the number of shares or contracts traded in a financial market over a specific period of time. These indicators provide valuable insights into the strength and significance of price movements.

Usage

addVolume(chart)

Arguments

chart

a kline() or ohlc() chart

Value

Invisbly returns a plotly object.

See also

Other chart indicators: addBBands(), addEvents(), addFGIndex(), addLSRatio(), addMACD(), addMA(), addRSI(), chart()

Examples

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

# library
library(cryptoQuotes)

# charting klines
# with various indicators
chart(
  chart = kline(
    ATOMUSDT
  ) %>% addVolume() %>% addMA(
    FUN = TTR::SMA,
    n = 7
  ) %>% addMA(
    FUN = TTR::SMA,
    n = 14
  ) %>%
    addBBands() %>%
    addMACD() %>%
    addRSI()

)
# script end;