View source: R/kellyWrappers.R
kellyCriterion | R Documentation |
Compute the Kelly-criterion log-optimal fraction under a variety of models for the distribution of period asset returns. Models include continuous time GBM, jump-GBM with normally, kou, and uniformly distributed jumps, as well as discrete-time models such as uniform, normal, gmm, and stable. Pass either the stock symbol ticker to look up data or pass the price-series itself.
kellyCriterion( model = "gbm", rate = 0, symbol = NULL, prices = NULL, period = "daily", key = "premium" )
model |
the distribution used for the returns under which the Kelly criterion is to be computed |
rate |
the risk-free rate earned on a money-market account |
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 |
numeric
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.