December 10th, 2005, 2:25 pm
Hello MF05JY,Thanks for your reply and help. I am a beginner in Matlab GUI. I have got the analytical results but find difficulty in the simulation part. If it is ok can you tell me how did u simualte it (I mean the code for simulation)? The formula for pricing barrier options:The price of an option is :C0 = E[e-rT(max(0, ST-K1)I { ST/2≤L} + max (0, ST-K2)I { ST/2>L})] where as usual, C0 = E[Y] whereY:=e-rT/2(c(ST/2, T/2, K1,r, σ )I{ ST/2≤L} + c(ST/2, T/2, K2,r, σ )I{ ST/2≥L})where c(x,t,k,r,σ ) is the price of European call option with strike k, interest rate r, volatility σ, time to maturity t, and initial stock price x. Thanks again.Festivie