Apply a moving average crossover to one or multiple columns of an xts object in a rolling fashion.
1 | rollMAC(x, mashort, malong)
|
x |
An xts object |
mashort |
An integer indicating the number of periods in the short MA. |
malong |
An integer indicating the number of periods in the long MA. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.