Re: QuantLib::Bond::cleanPriceFromZSpread

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/QuantLib-Bond-cleanPriceFromZSpread-tp7310p7327.html

On Fri, 2009-02-27 at 14:54 -0800, gigifaye29 wrote:
> Is the .npv() function in callablebond class inherited from the generic bond
> class, or it is overridden in the callablebond?

Technically, it's not; but NPV() delegates the calculation to the
pricing engine, so callable bonds are priced correctly if you set the
correct engine.

> Seems to me the npv calculation is sensitive the tree volatility assumption,
> but when I try a bond that will be called on the evaluation date the npv is
> not capped to the strike price.

If the call date equals the evaluation date, the engine might consider
it as expired. What happens if you try a bond that will be called one
day after the evaluation date?

Luigi


--

The box said "Use Windows 95 or better," so I got a Macintosh.



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users