Re: issues with FuturesRateHelper when build AUD depo-future-swap curve

Posted by Yan Kuang on
URL: http://quantlib.414.s1.nabble.com/reference-of-boost-shared-ptr-instead-of-Handle-tp7623p7655.html



Luigi Ballabio <[hidden email]> wrote on 12/09/2009 02:13:47 AM:

> Hi Yan,
>
> On Fri, 2009-09-11 at 14:04 +1000, Yan Kuang wrote:
> > I am build an AUD  depo-future-swap curve. I have defined nessary
> > interest rate index such as BBSW etc.
>
> Would you like to share them?  If you're in a position to contribute
> them, I'll add them to a future release.
>

Surely, but I need to finish my current work first.

> > I implemeted AUD Bank Bill Future last trading date function:
> >
> > However, the [FuturesRateHelper] constructor required the future's
> > last trading date as an IMM date, I have commented the
> > QL_REQUIRE.
>
> I see. Yes, that might have been too specific.
>
>
> > Also the the earliestDate shoule be:
> >
> > earliestDate_ = cal.advance(immDate, i->fixingDays(), Days);
> >
> > Instead of
> > //earliestDate_ = immDate;
>
> That depends on how one defines the relevant date, doesn't it?
> You're currently passing the fixing date for the rate, meaning that the
> start of your accrual period is 2 days later. The convention currently
> implemented seems to be that the IMM date is the value date, and the
> fixing date is 2 days before that (Nando, you probably wrote the code:
> is this correct?)  However, the two conventions could be made to
> agree---for instance, if your function or another similar one returned
> the value date of the last trading date.
>
Agree, I had another look at IMM date in Quantlib, it's 3dr Wenesday, which

is the underlying start date. Future last trading date or underlying start date
can infer each other, so both way are ok.

 

Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in error, please delete and inform us by return email. Because emails and attachments may be interfered with, may contain computer viruses or other defects and may not be successfully replicated on other systems, you must be cautious. Westpac cannot guarantee that what you receive is what we sent. If you have any doubts about the authenticity of an email by Westpac, please contact us immediately.

It is also important to check for viruses and defects before opening or using attachments. Westpac's liability is limited to resupplying any affected attachments.

This email and its attachments are not intended to constitute any form of financial advice or recommendation of, or an offer to buy or offer to sell, any security or other financial product. We recommend that you seek your own independent legal or financial advice before proceeding with any investment decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a company registered in New South Wales in Australia under the Corporations Act 2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the Financial Services Authority and is registered at Cardiff in the United Kingdom as Branch No. BR 106. Westpac operates in the United States of America as a federally chartered branch, regulated by the Office of the Comptroller of the Currency.

Westpac Banking Corporation ABN 33 007 457 141.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users