genMA | R Documentation |
Description
genMA(df, ma)
df |
Dataframe with price data |
ma |
# of periods for the moving average to calculate |
a vector with the same number of columns as df showing the moving averages. Periods before moving average should be not considered for use. Output is kept same columns for compatibility.
SPYDMA200 <- genMA(SPYdaily, 14)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.