Description Usage Arguments Value Examples
Advances in Financial Machine Learning, Snippet 3.1, page 44. Computes the daily volatility at intraday estimation points.
1 | daily_volatility(price, span = 50)
|
price |
data.table or data.frame object with first column is of type POSIXct |
span |
used to calculate alpha parameter in exponential moving average |
data.table with Datetime and Value columns
1 2 | data("spy")
daily_volatility(subset(spy, select = c("index", "close")))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.