Posted by
Piter Dias-4 on
Sep 16, 2009; 3:25am
URL: http://quantlib.414.s1.nabble.com/I-need-some-tips-about-Coercion-tp12907p12913.html
Nando/Eric,
> Could you provide an example: ISIN and expected cash flow schedule?
Find attached a spreadsheet that replicates schedule and pricing given the
ISIN, yield and calculation date. The QuantLib patch file is included as
well.
> btw I'm going to commit a fix removing the unused dayCounter parameter
> in the FixedRateCoupon InterestRate-based constructor, which should
> make my point above more evident.
We were working in the same direction but I included a FixedRateBond
constructor that accepts a vector of QuantLib::InterestRate as well. The
Brazilian bonds test was changed to use it because it is much more clear
than the old one (using QuantLib::Bond class).
I included a patch for QuantLibXL just in case you are interest in my
experiments. I created qlnewFixedRateBond (includes Compounding and
Frequency qlFixedRateBond) and qlnew2FixedRateBond (changes the coupon
paramenter of qlFixedRateBond ot accept a vector of
QuantLib::InterestRate).
The qlnew2FixedRateBond is pretty cool but should have the DayCounter
parameter removed once it is implicit in the coupons (it is proof of
concept). I have no idea how it could be included in QuantLibXL. There is a
spreadsheet included showing how the function perform well generating the
cash flows.
Regards,
-------------------------
Piter Dias
[hidden email]------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev