View source: R/kellyWrappers.R
getGBM | R Documentation |
Pass either the stock ticker symbol or the time-series data itself to fit a Geometric Brownian motion to the data via the basic MLE routine. Returns a vector containing the mean drift and the volatility; for daily price-series these are annualized, all other periods are not.
getGBM(symbol = NULL, prices = NULL, period = "daily", key = "premium")
symbol |
the stock ticker to look up |
prices |
optinally pass the time-series of prices |
period |
for looking up by symbol, the period between prices (daily, intraday, weekly, monthly) |
key |
premium or free API key for Alpha-Vantage |
vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.