Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Effectively, I would like you to replicate the Black - Scholes problem from Assignment # 1 , where we created a chart with two series.
Effectively, I would like you to replicate the BlackScholes problem from Assignment # where we created a chart with two series. The first series depicted the payoff at maturity for a European call or put option as a function of the underlying stock price and the second series showed the BlackScholes value of the option at some point prior to maturity as a function of the underlying stock price. So you will need the functions you wrote for Assignment # I would like you to write yet another function that returns an array of N rows by columns. The N refers to the number of stock prices. The first column should have a range of stock prices from to X The second column should have the payoff at maturity of the option for each stock price and the third column should have the value of the option at some time prior to maturity for each stock price ie the BlackScholes price So this new function should create, internally in VBA, the data that was on the worksheet in assignment # Your new function should call the Payoff and BlackScholes functions inside some sort of For Loop and store the results in the array. Once you have your function working, you can create a named formula to call your new function in Excel. Then create another named formulas that return each of the individual columns. Use the INDEX function to accomplish this task. For example:
PriceArray NewFunction
Stockprices indexPriceArray,,
Optionpayoff indexPriceArray,,
OptionPrice indexPriceArray,,
Then used the named formulas to create the chart. See the Damped Sin Wave video for the technique. In the end, the only thing on that should be on the worksheet are input parameters and the chart.
The inputs to the new function are the same as in assignment #
Parameter Name Parameter Value Description Data Type
Security Call or Put Option Type String
S $ Stock Price Double
X $ Exercise Price Double
r Risk Free Rate Double
q Dividend Yield Double
sigma Volatility of Asset Return Double
T Time to Maturity years Double
per year continuously compounded
Actually, you dont need the current stock price, S as an input to this new function, since you will create a range of stock prices from to X inside this function. These will become the first column of the array.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started