Login  Register

Re: TreeLattice with different discounting and forwarding curves

Posted by Luigi Ballabio on Sep 13, 2011; 2:24pm
URL: http://quantlib.414.s1.nabble.com/TreeLattice-with-different-discounting-and-forwarding-curves-tp9139p9140.html

On Sun, 2011-08-21 at 21:17 +0200, SK A wrote:

> I am planning to implement a lattice in QuantLib that can cope with
> different discounting and forwarding curves. [...] I think that the
> curicial point is to separate the rollback method on the payoffs (i.e.
> DiscretizedSwap and DiscretizedSwaption objects)   and on the
> DiscretizedBond object. In the first one  discounting will be done
> with Eonia and in the second one with Euribor (in order to calculate
> the Euribor forwards).
>  
> My plan is to implement a new class in numericalmethod.hpp, called
> TwoCurveTreeLattice that has two rollback and respectivley two
> partialRollback methods, calling two different stepback methods with
> corresponding discountings

It could become a mess very quickly.  How about passing two lattices to
the DiscretizedSwaption instead?  The swaption would roll itself and the
DiscretizedSwap on the Eonia lattice, and the DiscretizedBond on the
Euribor lattice.  You'll have to take care that the two lattices have
the same nodes, of course, so you'll have to use a model where they
don't depend on the underlying curve; but that's a problem you'd have
with the two-curve lattice too.  This way, you wouldn't have to modify
the Lattice class.

Luigi


--

Quote me as saying I was misquoted.
-- Groucho Marx



------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
Learn about the latest advances in developing for the
BlackBerry® mobile platform with sessions, labs & more.
See new tools and technologies. Register for BlackBerry® DevCon today!
http://p.sf.net/sfu/rim-devcon-copy1 
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev