optimalItoProcess | R Documentation |
Simulate log-optimal strategy for prices driven by an Ito process
optimalItoProcess(bankroll, t, spot, rate, dynamics, n = 1000)
bankroll |
initial bankroll to invest |
t |
time horizon to trade over |
spot |
the initial stock price |
rate |
the return of the bond |
dynamics |
list of drift and volatility function of |
n |
number of time-steps to use in sample-path simulation |
The argument dynamics
must be a named list of functions drift(t,x)
and
diffusion(t, x)
.
data.frame of solution
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.