全部版块 我的主页
论坛 金融投资论坛 六区 金融学(理论版) 金融工程(数量金融)与金融衍生品
3995 16
2011-01-14
modify the following program so as to plot the Black-Scholes prices for put options (instead of calls – so you need to look up the full features of blsprice in MATLAB) with the price of the underlying fixed at 50 but strike prices varying between 35 and 65 in steps of 5. All the other parameters remain the same.



Plotting the Black–Scholes price of a vanilla call option, for time to maturity
T ranging from one year down to zero, initial price S0 ranging from 30 to 70,
strike price K = 50, risk-free rate r = 0.1, and volatility  = 0.4.

>> T = 1:-0.05:0;
>> S0 = 30:70;
>> K = 50;
>> sigma = 0.4;
>> r = 0.1;
>> [X,Y] = meshgrid(T,S0);
>> f = @(time,price) blsprice(price, 50, 0.1, time, 0.4);
>> surf(X,Y,f(X,Y))
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2011-1-14 11:08:44
1# maxth

可以运行啊
你的问题在哪里?
我把运行结果的图片发上来
等等
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-14 11:11:54
2# Henryzhu

运行的结果
附件列表
bsprice.jpg

原图尺寸 97.85 KB

bsprice.jpg

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-14 11:35:20
我不是要编这个,是要改成put的,谢谢,呵呵
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-14 11:37:15
4# maxth
put是什么?
没听说过啊
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2011-1-14 11:38:26
put 就是看跌期权,call是看涨
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群