powered by
A Monte Carlo Option Pricing Algorithm for Jump Diffusion Model
jdm_bs( day = 180, monte_carlo = 1000, start_price = start_price, mu = mu, sigma = sigma, lambda = lambda, K = K, plot = TRUE )
: an integer of a time duration of simulation.
: an integer of an iteration number for monte carlo.
: a vector of company's initial stock prices.
: a vector of drift parameters of geometric Brownian motion.
: a vector of volatility parameters of geometric Brownian motion.
: an integer of how many times jump in unit time.
: a vector of option strike prices.
: a logical type of whether plot a result or not.
option prices : a list of (call_price, put_price)
# NOT RUN { jdm_bs(100,10,c(5500,6500,8000),c(0.1,0.2,0.05),c(0.11,0.115,0.1),2,c(6000,7000,12000),plot=TRUE) # }
Run the code above in your browser using DataLab