30 year swap using SwapRateHelper for bootstrap. when valuation date is 3/29/2010, I got an error "maturity April 2nd 2040, reference date March 29th, 2010: time (30.4528) is past max curve time (30.45 using Act/360 day count)". How to fix this problem? Should the monthEnd flag have to be turned on?
Thanks
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Zhifeng, Not sure your exactly problem, you may try the enableExtrapolation() function.
30 year swap using SwapRateHelper for bootstrap. when valuation date is 3/29/2010, I got an error "maturity April 2nd 2040, reference date March 29th, 2010: time (30.4528) is past max curve time (30.45 using Act/360 day count)". How to fix this problem? Should the monthEnd flag have to be turned on? Thanks ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev_______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users _____________________________________________________________ DTCC DISCLAIMER: This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error, please notify us immediately and delete the email and any attachments from your system. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
In reply to this post by zlee
Hi Zhifeng,
I think the answer to your question is in file ratehelpers.cpp of QuantLib project in void "SwapRateHelper::initializeDates". It sounds strange that maturity date of 30 year swap starting 3/29/2010 ends April 2nd 2040. Perhaps you have to review your "qlswapratehelper" settings.
|
In reply to this post by zlee
On Tue, 2010-03-30 at 10:19 -0400, Zhifeng Li wrote:
> 30 year swap using SwapRateHelper for bootstrap. when valuation date > is 3/29/2010, I got an error "maturity April 2nd 2040, reference date > March 29th, 2010: time (30.4528) is past max curve time (30.45 using > Act/360 day count)". How to fix this problem? It's probably some date-adjustment issue. May you post some code to reproduce the problem? Luigi -- There is no likelihood man can ever tap the power of the atom. -- Robert Millikan, Nobel Prize in Physics, 1923 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
using enableExtrapolation solved the problem. Thanks.
On Wed, Mar 31, 2010 at 7:52 AM, Luigi Ballabio <[hidden email]> wrote:
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |