Login  Register

Re: mortgage bond

Posted by Luigi Ballabio on Dec 17, 2009; 3:49pm
URL: http://quantlib.414.s1.nabble.com/mortgage-bond-tp12877p12886.html

On Fri, 2009-12-11 at 10:23 -0800, javit wrote:
>
> I'm planning to work on calculations for mortgage related products including
> prepayments and defaults such as OAS and OAD. Is anybody planning to develop
> new/existing objects for these calculations? Or already did?

The last I knew was the post you quoted below.  There are no other plans
that I know of.  But if you didn't already, maybe you might want to
contact the original poster and see what happened?

Luigi



> Nathan Abbott wrote:
> >
> > I am c++ programmer that only knows the basics of quantitative finance.
> > Because I have been programming with QuantLib for two years, I think I
> > have
> > a good understanding on how QuantLib works. Luigi Ballabio's *
> > Implementing
> > QuantLib *has been a great help on understanding QuantLib. I am working
> > with
> > a financial person who uses my program, He is fluent with quantitative
> > finance, but only knows a little c++ and does not know how QuantLib works.
> >
> > We want to implement a simple version of mortgage bonds through a
> > MorgtageBond class that will probably inherit from the Bond class (and
> > maybe
> > a FixedRateMortageBond and FloatingRateMortageBond classes derived from
> > the
> > MortgageBond class) and would like to solicit some
> > opinions/suggestions/objections.
> >
> > Currently we are thinking that it will be defined similar to the
> > amortizing
> > bond classes (taking in a vector of nominals and dates generated outside
> > of
> > QuantLib), but be derived from bond (and inherit all it's functions) and
> > adding specific functions to it (like weighted average life calculation).
> > Has anyone already done/thought of doing something similar?
> >
> > Secondly, assuming prepayments are not an issue (which for our purposes
> > they
> > are not), a simple mortgage bond is priced similar to corporate bonds,
> > meaning as a spread over swaps (i.e. on a yield basis, yield = swap rate +
> > spread), then use that sum as the yield to calculate the price. The bond
> > class has dirtyPrice and cleanPrice functions which take yield as an
> > input.
> > We can get the par rate from the yield curve by using the parRate function
> > or instantiate a simple swap (as explained in yieldtermstructure.hpp
> > comments).
> >
> > Our question is w.r.t the spread. We want to build a spread grid/matrix
> > with
> > rating on one axis/rows and maturity/columns on the other. We were
> > thinking
> > of creating a termspreadsurface (similar to capfloortermvolsurface) which
> > could be useful for mbs and corporate bonds (spread per rating/term). Has
> > anyone already done something similar?
> >
> > Btw, if anybody is interested in residential prepayments/OAS calculations
> > and willing to implement that or is working on that, please contact me and
> > we can hopefully coordinate. Please note however that we have limited
> > (almost zero) expertise on that subject.
> >
> > ------------------------------------------------------------------------------
> > 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-dev mailing list
> > [hidden email]
> > https://lists.sourceforge.net/lists/listinfo/quantlib-dev
> >
> >
>
>
> -----
> Cavit (Javit) Hafizoglu
> mailto:[hidden email] mailto:[hidden email]



--

There are no rules of architecture for a castle in the clouds.
-- Gilbert K. Chesterton



------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev