Modifying FittedBondDiscountCurve

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Modifying FittedBondDiscountCurve

Nicholas Manganaro-2

I was taking a look at <ql/termstructures/yield/fittedbonddiscountcurve.hpp> and saw the note:

       \todo refactor the bond helper class so that it is pure

              virtual and returns a generic bond or its cash

              flows. Derived classes would include helpers for

              fixed-rate and zero-coupon bonds. In this way, both

              bonds and bills can be used to fit a discount curve

              using the exact same machinery. At present, only

              fixed-coupon bonds are supported. An even better way to

              move forward might be to get rate helpers to return

              cashflows, in which case this class could be used to fit

              any set of cash flows, not just bonds.

 

I would like to include discount instruments in curve construction, if possible. Has anyone made progress along that path, perhaps on the line of the steps identified in this note?

I would appreciate advice or comments on the work necessary to use generic cash flows in this process, if it would not require a major re-write of the library.

Thanks.

-Nick


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Modifying FittedBondDiscountCurve

Allen Kuo-2
Nick: I haven't looked at this in a long time but could you created instances of discount bonds as  special cases of a fixed rate bonds with a single cash flow, i.e. would the current code still work with FixedRateBondHelpers ?

If so, then I probably should change the To Do in the documentation.

Allen


On Friday, 4 July 2014, 19:54, Nicholas Manganaro <[hidden email]> wrote:


I was taking a look at <ql/termstructures/yield/fittedbonddiscountcurve.hpp> and saw the note:
       \todo refactor the bond helper class so that it is pure
              virtual and returns a generic bond or its cash
              flows. Derived classes would include helpers for
              fixed-rate and zero-coupon bonds. In this way, both
              bonds and bills can be used to fit a discount curve
              using the exact same machinery. At present, only
              fixed-coupon bonds are supported. An even better way to
              move forward might be to get rate helpers to return
              cashflows, in which case this class could be used to fit
              any set of cash flows, not just bonds.
 
I would like to include discount instruments in curve construction, if possible. Has anyone made progress along that path, perhaps on the line of the steps identified in this note?
I would appreciate advice or comments on the work necessary to use generic cash flows in this process, if it would not require a major re-write of the library.
Thanks.
-Nick

------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users



------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: Modifying FittedBondDiscountCurve

Nicholas Manganaro-2

Thanks for your timely response, Allen.

I thought (and hoped) the note might be old. I’ll look into an answer to your question, and get back to you.

 

From: Allen Kuo [mailto:[hidden email]]
Sent: Friday, July 04, 2014 8:10 AM
To: [hidden email]; [hidden email]
Subject: Re: [Quantlib-users] Modifying FittedBondDiscountCurve

 

Nick: I haven't looked at this in a long time but could you created instances of discount bonds as  special cases of a fixed rate bonds with a single cash flow, i.e. would the current code still work with FixedRateBondHelpers ?

 

If so, then I probably should change the To Do in the documentation.

 

Allen

 

On Friday, 4 July 2014, 19:54, Nicholas Manganaro <[hidden email]> wrote:

 

I was taking a look at <ql/termstructures/yield/fittedbonddiscountcurve.hpp> and saw the note:

       \todo refactor the bond helper class so that it is pure

              virtual and returns a generic bond or its cash

              flows. Derived classes would include helpers for

              fixed-rate and zero-coupon bonds. In this way, both

              bonds and bills can be used to fit a discount curve

              using the exact same machinery. At present, only

              fixed-coupon bonds are supported. An even better way to

              move forward might be to get rate helpers to return

              cashflows, in which case this class could be used to fit

              any set of cash flows, not just bonds.

 

I would like to include discount instruments in curve construction, if possible. Has anyone made progress along that path, perhaps on the line of the steps identified in this note?

I would appreciate advice or comments on the work necessary to use generic cash flows in this process, if it would not require a major re-write of the library.

Thanks.

-Nick


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users