beta_trailing50: Calculate Beta Using Last 50 Daily Gains

Description Usage Arguments Value References Examples

View source: R/beta_trailing50.R

Description

Calculates beta for a ticker symbol based on the previous 50 daily gains.

Usage

1
beta_trailing50(ticker, benchmark = "SPY", ...)

Arguments

ticker

Character string with ticker symbol that Yahoo! Finance recognizes.

benchmark

Character string specifying which fund to use as benchmark.

...

Arguments to pass to load_gains.

Value

Numeric value.

References

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

Examples

1
2
3
4
5
## Not run: 
# Calculate TLT's beta based on the previous 50 daily gains
beta_trailing50("TLT")

## End(Not run)

vandomed/stocks documentation built on July 22, 2020, 3:25 a.m.