Description Usage Arguments Value
Error adjusted moving average
1 2 |
Price_Daily |
xts object in form of a dataframe with daily prices |
SMAperiod |
Period in which one want to adjust prices. Hence this period is used when calculating forecast and thereby errors |
Lag |
Number of periods used when calculating simple momentum of the roc/errors |
CompareObj |
Object of which final object should be compare to. Ex. if period is monthly, then a frame with the wanted index should be provided |
period |
Periods at which one is rebalancing. Can be "days", "weeks", "months", "quarters" or "years" |
Matrix of simple moving average o
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.