Description Usage Arguments Value References Examples
View source: R/beta_trailing50.R
Calculates beta for a ticker symbol based on the previous 50 daily gains.
1 | beta_trailing50(ticker, benchmark = "SPY", ...)
|
ticker |
Character string with ticker symbol that Yahoo! Finance recognizes. |
benchmark |
Character string specifying which fund to use as benchmark. |
... |
Arguments to pass to |
Numeric value.
Jeffrey A. Ryan and Joshua M. Ulrich (2019). quantmod: Quantitative Financial Modelling Framework. R package version 0.4-15. https://CRAN.R-project.org/package=quantmod
1 2 3 4 5 | ## Not run:
# Calculate TLT's beta based on the previous 50 daily gains
beta_trailing50("TLT")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.