| macd | R Documentation |
A high-level plotly::plot_ly()- and plotly::add_lines()-function that
interacts with the TTR::MACD()-function. The function adds subchart with a
TTR::MACD()-indicator.
macd(
nFast = 12,
nSlow = 26,
nSig = 9,
maType = "SMA",
percent = TRUE,
...
)
nFast |
Number of periods for fast moving average. |
nSlow |
Number of periods for slow moving average. |
nSig |
Number of periods for signal moving average. |
maType |
Either:
|
percent |
logical; if |
... |
For internal use. Please ignore. |
An invisible plotly::plot_ly()-object.
Serkan Korkmaz
Other chart indicators:
add_event(),
alma(),
bollinger_bands(),
chart(),
dema(),
donchian_channel(),
ema(),
evwma(),
fgi(),
hma(),
lsr(),
rsi(),
sma(),
smi(),
volume(),
vwap(),
wma(),
zlema()
Other subchart indicators:
add_event(),
fgi(),
lsr(),
rsi(),
smi(),
volume()
Other momentum indicators:
rsi(),
smi()
# 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
)
)
# script end;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.