View source: R/discreteTimeModels.R
optimalDTFM | R Documentation |
Simulates daily stock prices under the model and implements the strategy. Assuming no trading costs, etc. Returns mean and total growth plus pnl.
optimalDTFM(n, spot, bankroll, distr, param, rate = 0, plotG = TRUE)
n |
number of days to simulate |
spot |
initial stock price |
bankroll |
initial bankroll |
distr |
distribution of daily arithmetic returns |
param |
parameters of the distribution |
rate |
risk-neutral rate |
plotG |
boolean for plotting on call |
list
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.