Re: actact (Bond) yearFraction() function...

Posted by Ferdinando M. Ametrano-3 on
URL: http://quantlib.414.s1.nabble.com/Error-while-compiling-Swapvaluation-example-tp5030p5033.html

Hi Toyin,

I am revisiting very old messages I wasn't able to catch up with
before... shame on me.

If you can provide the inputs which create the wrong schedule you
described below using the current code base I would look into it.

ciao -- Nando

On Sep 18, 2006 7:54 AM, Toyin Akin <[hidden email]> wrote:

>
> Hi All,
>
> I've been playing with some of the Daycounter classes, viewing their results
> and I believe I'm getting some strange numbers with the actact (Bond)
> (ActualActual(ActualActual::Bond)) class.
>
> Basically, when building a FixedCoupon schedule (for example), apart from
> the first and last coupon periods (which may be stubs), the cashflows
> in-between will use the same start/end dates for the refStart/refEnd dates.
>
> Now given a period such as 7/6/2002 -> 21/12/2002, the actact (Bond) will
> compute a yearFraction value of 0.5
>
> However, it will also compute a value of 0.5 for any start date in the range
>
> 7/6/2002 - > 6/7/2002
>
> with the same EndDate : 21/12/2002.
>
> Within my (hacked) environment, when I pass in the unAdjusted schedule dates
> to the refPeriod dates. I obtain a more likely (to me) set of results.
>
> Basically, is the correct operation of the actact (Bond) dayCounter, given
> the above set of dates, correct? Does it depend on the market (ie Bond
> cashflows vs swap fixed leg rate cashflows).
>
> I'm wondering whether the other Daycounter's also have differences in output
> if it is correct to utilise unAdjusted coupon dates for the refDates.
>
> Thoughts...
> Toy out.
>
>
>
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> QuantLib-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quantlib-users
>

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users