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()
.
Arguments
- price
A character-vector of length 1. "close" by default. The name of the vector to passed into
TTR::DEMA()
.- n
Number of periods to average over. Must be between 1 and
nrow(x)
, inclusive.- v
The 'volume factor' (a number in [0,1]). See Notes.
- wilder
logical; if
TRUE
, a Welles Wilder type EMA will be calculated; see notes.- ratio
A smoothing/decay ratio.
ratio
overrideswilder
inEMA
.- ...
For internal use. Please ignore.
Value
A plotly::plot_ly()
-object
See also
Other chart indicators:
add_event()
,
alma()
,
bollinger_bands()
,
chart()
,
donchian_channel()
,
ema()
,
evwma()
,
fgi()
,
hma()
,
lsr()
,
macd()
,
rsi()
,
sma()
,
smi()
,
volume()
,
vwap()
,
wma()
,
zlema()
Other moving average indicators:
alma()
,
ema()
,
evwma()
,
hma()
,
sma()
,
vwap()
,
wma()
,
zlema()
Other main chart indicators:
add_event()
,
alma()
,
bollinger_bands()
,
donchian_channel()
,
ema()
,
evwma()
,
hma()
,
sma()
,
vwap()
,
wma()
,
zlema()