Re: Coupons and Fixed Rate Legs, Take Two...

Posted by Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/Coupons-and-Fixed-Rate-Legs-Take-Two-tp1186p1187.html

On Tue, 2007-07-24 at 11:36 +0100, Toyin Akin wrote:

> The coupons simply take their reference Dates from the adjusted start/end
> dates when in fact I beleive that refDates should be the unadjusted dates
> for the period. The same unadjusted dates that the schedule class internally
> builds just before adjusting them.
>
> In a nutshell, the refdates should be unaffected by holiday calendars.
>
> I've included a modified schedule class (really exposing the unadjusted
> dates array) and a new bondcashflowvectors class that uses the extra
> information exposed from the schedule class.

Toyin,
        it should not be necessary to modify the actual code. Bonds take both a
schedule and a payment-adjustment convention. If you build your schedule
without adjustment, the start and end dates for the coupon should remain
unadjusted and only the payment date will be affected by
holidays---unless, of course, the coupon-building code does some other
adjustment; and unless, of course, I'm missing something...

Luigi


--

I am extraordinarily patient, provided I get my own way in the end.
-- Margaret Thatcher



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users