全部版块 我的主页
论坛 金融投资论坛 六区 金融学(理论版)
3557 3
2017-10-21

EXCEL VBA 金融建模 -計算債券到期收益率(Eng)


Calculate the redemption yield of a bond via thebisection method and VBA.


The yield to maturity of a bond isn’t given by asimple, explicit equation – you need iterative methods to backsolve the bond pricingformula.


Excel’s RATE function,for example, iteratively calculate bond yields. However, you might want tocompute this quantity with VBA instead.

But why would you use VBA when RATE already exists?Well, there are several good reasons.



  • You     learn theory behind     the bisection method and apply the concepts to a practical     problem
  • You     can leverage your new found knowledge to solve other tricky numerical     problems, such as calculating implied     volatility
  • You     gain familiarity with VBA – a widely used tool in business and finance     (you can’t call yourself an Excel guru without knowing at least a little     VBA)

This equation describes the price of a bond.




  • C is     the coupon
  • i is     the yield to maturity
  • M is     the par value
  • F is     the payment frequency
  • n is     the number of payments

This equation cannot be rearranged to give i. Sohere’s some VBA that applies the bisection method to solve this equation for i


連結

http://investexcel.net/wp-content/uploads/2017/05/YieldToMaturityVBABisectionMethod.zip


由於上載附件過久也未能上傳得到,所以我只給連結了


二维码

扫码加我 拉你入群

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

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

全部回复
2017-10-21 13:58:08
thanks for share...
二维码

扫码加我 拉你入群

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

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

2017-10-25 02:06:56
请问是否有关于annuity的vba模板?
二维码

扫码加我 拉你入群

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

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

2017-10-25 22:11:58
quanyijim 发表于 2017-10-25 02:06
请问是否有关于annuity的vba模板?
有的,在那個網有給連接
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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