Hello,
I am using the PiecewiseYieldCurve class to create a termStructure to bootstrap a yield curve and am getting this error: 1st iteration: failed at 13th instrument, maturity September 13th, 2013, reference date July 14th, 2011: 2nd leg: Missing Euribor3M Actual/360 fixing for September 9th, 2011 Does anyone have any idea what this means? thanks ------------------------------------------------------------------------------ Malware Security Report: Protecting Your Business, Customers, and the Bottom Line. Protect your business and customers by understanding the threat from malware and how it can impact your online business. http://www.accelacomm.com/jaw/sfnl/114/51427462/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi,
Sorry just to add. The 13th instrument used for the curve is a Swap (SwapRateHelper). Anyway... problem resolved, was a small error. thanks ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
On Sun, Sep 11, 2011 at 10:45 AM, Ramon Lozano <[hidden email]> wrote:
> Sorry just to add. The 13th instrument used for the curve is a Swap > (SwapRateHelper). Anyway... problem resolved, was a small error. glad you solved it, but would be nice for future reference if you specify what was the error. My bet: too low rate after high rates, implying negative forward rates ciao -- Nando ------------------------------------------------------------------------------ Doing More with Less: The Next Generation Virtual Desktop What are the key obstacles that have prevented many mid-market businesses from deploying virtual desktops? How do next-generation virtual desktops provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hello,
Sorry about that. Anyway the error was an omission on my part. I did not have the following line on my code: Settings::instance().evaluationDate() = Date(yieldCurve.startDate); I have another question though.Is the above line really necessary even though i specify the start date when i initialize the PiecewiseYieldCurve class? (code line below ) discountCurve = boost::shared_ptr<YieldTermStructure>( new PiecewiseYieldCurve<Discount,Linear>( Date(yieldCurve.startDate), instruments, termStructureDayCounter, tolerance)); thanks ramon On Mon, Sep 12, 2011 at 11:55 PM, Ferdinando Ametrano <[hidden email]> wrote:
------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Yes, in principle they're two different dates. The evaluation date is today's date. The reference date for the curve is the one to where the curve discounts, which might be today's date but might also be spot (today+2) depending on your desk conventions. Luigi On Tue, 2011-09-13 at 09:53 +0800, Ramon Lozano wrote: > Hello, > > Sorry about that. Anyway the error was an omission on my part. I > did not have the following line on my code: > > Settings::instance().evaluationDate() = Date(yieldCurve.startDate); > > I have another question though.Is the above line really necessary even > though i specify the start date when i initialize the > PiecewiseYieldCurve class? > (code line below ) > > discountCurve = boost::shared_ptr<YieldTermStructure>( > new PiecewiseYieldCurve<Discount,Linear>( > Date(yieldCurve.startDate), > instruments, > termStructureDayCounter, > tolerance)); > > thanks > ramon > > On Mon, Sep 12, 2011 at 11:55 PM, Ferdinando Ametrano > <[hidden email]> wrote: > On Sun, Sep 11, 2011 at 10:45 AM, Ramon Lozano > <[hidden email]> wrote: > > Sorry just to add. The 13th instrument used for the > curve is a Swap > > (SwapRateHelper). Anyway... problem resolved, was a small > error. > > > glad you solved it, but would be nice for future reference if > you > specify what was the error. > > My bet: too low rate after high rates, implying negative > forward rates > > ciao -- Nando > > ------------------------------------------------------------------------------ > BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA > Learn about the latest advances in developing for the > BlackBerry® mobile platform with sessions, labs & more. > See new tools and technologies. Register for BlackBerry® DevCon today! > http://p.sf.net/sfu/rim-devcon-copy1 > _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users -- The economy depends about as much on economists as the weather does on weather forecasters. -- Jean-Paul Kauffmann ------------------------------------------------------------------------------ BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerry® mobile platform with sessions, labs & more. See new tools and technologies. Register for BlackBerry® DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |