View source: R/geometricBrownianMotion.R
optimalGBM | R Documentation |
Simulate log-optimal strategy for prices under geometric Brownian motion. A wrapper
to optimalItoProcess
.
optimalGBM(bankroll, t, spot, rate, parameters)
bankroll |
initial bankroll to invest |
t |
time horizon to trade over |
spot |
the initial stock price |
rate |
the return of the bond |
parameters |
drift and volatility |
The parameters must be a vector of drift and volatility.
data.frame of solution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.