Posted by
Luigi Ballabio on
URL: http://quantlib.414.s1.nabble.com/reference-of-boost-shared-ptr-instead-of-Handle-tp7623p7654.html
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.
> 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.
Luigi
--
Olmstead's Law:
After all is said and done, a hell of a lot more is said
than done.
------------------------------------------------------------------------------
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