powered by
A Normal Monte Carlo Option Pricing Algorithm
normal_bs( day = 100, monte_carlo = 1000, start_price = start_price, mu = mu, sigma = sigma, 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.
: 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 { price <- normal_bs(100,10,c(300,500,850),c(0.1,0.2,0.05),c(0.05,0.1,0.09),c(600,700,1200),plot=TRUE) # }
Run the code above in your browser using DataLab