| vwap | R Documentation | 
A high-level plotly::add_lines()-wrapper function that
interacts with {TTR}'s moving average family of functions.
The function adds moving average indicators to the main chart().
vwap(
 price  = "close",
 n      = 10,
 ratio = NULL,
 ...
)
price | 
 A character-vector of length 1. "close" by default.
The name of the vector to passed into   | 
n | 
 Number of periods to average over. Must be between 1 and
  | 
ratio | 
 A smoothing/decay ratio.    | 
... | 
 For internal use. Please ignore.  | 
A plotly::plot_ly()-object
Serkan Korkmaz
Other chart indicators: 
add_event(),
alma(),
bollinger_bands(),
chart(),
dema(),
donchian_channel(),
ema(),
evwma(),
fgi(),
hma(),
lsr(),
macd(),
rsi(),
sma(),
smi(),
volume(),
wma(),
zlema()
Other moving average indicators: 
alma(),
dema(),
ema(),
evwma(),
hma(),
sma(),
wma(),
zlema()
Other main chart indicators: 
add_event(),
alma(),
bollinger_bands(),
dema(),
donchian_channel(),
ema(),
evwma(),
hma(),
sma(),
wma(),
zlema()
# script start;
cryptoQuotes::chart(
  ticker = BTC,
  main = kline(),
  indicator = list(
    cryptoQuotes::ema(n = 7),
    cryptoQuotes::sma(n = 14),
    cryptoQuotes::wma(n = 21)
  )
)
# script end;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.