cms caps newbie question

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

cms caps newbie question

archlight
Hi Experts,

   I am currently replicating cms caps with payer swaptions. I have built series of swaptions. How do I price cms caps? I simply replace iborleg in capfloor unit testing code with cmsleg. but it is not working.

Leg makeLeg(const Date& startDate, Integer length) {
   return CmsLeg(schedule, swapIndex)
   ........
}
    is it right direction I am working torwards?

Regards
Reply | Threaded
Open this post in threaded view
|

Re: cms caps newbie question

Luigi Ballabio
On Tue, 2011-02-22 at 01:10 -0800, archlight wrote:
>    I am currently replicating cms caps with payer swaptions. I have built
> series of swaptions. How do I price cms caps? I simply replace iborleg in
> capfloor unit testing code with cmsleg. but it is not working.
>
> Leg makeLeg(const Date& startDate, Integer length) {
>    return CmsLeg(schedule, swapIndex)
>    ........
> }
>     is it right direction I am working torwards?

It's the right direction, but you'll need to change at least the coupon
pricer, too.  See test-suite/cms.cpp for examples.

Luigi


--

All generalizations are dangerous, even this one.
-- Alexandre Dumas



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users