"There are three variables of interest: T - t, S, vol. If T- t is held fixed, one can investigate the near term behavior of the option price as S and vol vary. If vol is held fixed, one can view the theoretical future dynamics of the option prices."
Basically I need to have the code evaluate the black scholes formula for each pair of spot and vol values for a range that the user inputs. My code is below, but when it runs it just keeps generating the same results over and over. Not sure what I have done that is wrong and I can't figure out how to export the result in a grid on a text file to show the results.
Any help on this would be much appreciated. The final output needs to show the top row as all the different strikes and the first column shows the different volatilities. Then the data would be filled out as the evaluation of the blackscholes for that pair.
Stdnormal.h and newcounter.h are both header files that work properly. They are used get the business days between the input dates and the normals for black scholes evaulation.