Description Usage Arguments Value References Examples
View source: R/technical_indicators.R
This function creates a moving average envelope.
1 |
x |
an xts object that contains OHLC data |
ma |
Type of moving average used. Default is "EMA". Options are EMA or SMA. |
n |
Number of periods. Default is 22. |
p |
percentage of moving the upper and lower bounderies away from the midpoint of the moving average. Default is 2.5. Needs to be between 0 and 100. |
... |
any other passthrough parameters |
Returns a timeseries with the lower and upper bound and the midpoint of the chosen moving average.
https://www.investopedia.com/terms/e/envelope.asp
1 2 3 4 5 6 7 8 9 10 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.