powered by
A high-level plotly::add_lines()-wrapper function that interacts with the TTR::BBands()-function. The function adds bollinger bands to the main chart().
plotly::add_lines()
TTR::BBands()
chart()
bollinger_bands( n = 20, sd = 2, maType = "SMA", color = '#4682b4', ... )
An invisible
plotly::plot_ly()-object.
plotly::plot_ly()
Number of periods for moving average.
The number of standard deviations to use.
A function or a string naming the function to be called.
A character-vector of length 1. "#4682b4" by default.
Other arguments to be passed to the maType function.
maType
Serkan Korkmaz
Other chart indicators: add_event(), alma(), chart(), dema(), donchian_channel(), ema(), evwma(), fgi(), hma(), lsr(), macd(), rsi(), sma(), smi(), volume(), vwap(), wma(), zlema()
add_event()
alma()
dema()
donchian_channel()
ema()
evwma()
fgi()
hma()
lsr()
macd()
rsi()
sma()
smi()
volume()
vwap()
wma()
zlema()
Other main chart indicators: add_event(), alma(), dema(), donchian_channel(), ema(), evwma(), hma(), sma(), vwap(), wma(), zlema()
# script start; # Charting BTC using # candlesticks as main # chart cryptoQuotes::chart( ticker = BTC, main = cryptoQuotes::kline(), sub = list( cryptoQuotes::volume() ) ) # script end;
Run the code above in your browser using DataLab