Re: (no subject)

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

Re: (no subject)

Luigi Ballabio
On Thu, Nov 24, 2011 at 4:40 PM, barba dos <[hidden email]> wrote:
> For callable bonds, what does the following error message mean:
>
> Error in calculation. the given cash flows cannot result in the given market
> price due to their sign.
>
>
> What is the idea behind this message.

Hello,
    I just tried to read the relevant code, and my head hurt.  The
logic is kind of obfuscated, but I think it means that you have
negative cash flows and you asked to find a yield that gives a
positive NPV, or the other way around.

Luigi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Reply | Threaded
Open this post in threaded view
|

Re: (no subject)

Guowen Han
Callable bond usually has an advanced notice for the call. Once the notice is out, the bond price will drop. If there is no announcement in certain time period before the call schedule, it implies that the bond will not be called. So you need to put some logic there, otherwise you cannot match the market price otherwise. I saw the maturity of the US treasury bond  was changed because the call notice. For corporate bond seems different.

Hope this help.

Thanks,

-----Original Message-----
From: Luigi Ballabio [mailto:[hidden email]]
Sent: Thursday, December 01, 2011 4:03 AM
To: barba dos
Cc: [hidden email]
Subject: Re: [Quantlib-users] (no subject)

On Thu, Nov 24, 2011 at 4:40 PM, barba dos <[hidden email]> wrote:
> For callable bonds, what does the following error message mean:
>
> Error in calculation. the given cash flows cannot result in the given
> market price due to their sign.
>
>
> What is the idea behind this message.

Hello,
    I just tried to read the relevant code, and my head hurt.  The logic is kind of obfuscated, but I think it means that you have negative cash flows and you asked to find a yield that gives a positive NPV, or the other way around.

Luigi

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users
<BR>_____________________________________________________________
<FONT size=2><BR>
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.</FONT>

------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure
contains a definitive record of customers, application performance,
security threats, fraudulent activity, and more. Splunk takes this
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users