On Fri, 2008-05-23 at 07:25 -0700, gigifaye29 wrote:
> Can I verify the "price" as a parameter that feeds to various functions in
> Quantlib?
>
> One of them is the cashflows::irr(const Leg &leg, Real marketPrice, ...)
> Does the marktPrice here mean the clean price?
No; looking at the code, it is the dirty price. It should be better
documented to avoid confusion.
> Also another one -similar kind of confusion :
> FixedRateBondHelper (const Handle< Quote > &cleanPrice, Natural
> settlementDays,...)
> It explicitly says 'cleanprice' here. What if I push a bond in the example
> above as a rate helper to instruments that feeds the termstructure template,
> would that result in a weird yield?
No, the yield will be ok. The rate helper knows that the input is a
clean price and performs the calculations accordingly (i.e., it will
search for a root such that the bond's clean price equals the input.)
Luigi
--
Anyone who says he can see through women is missing a lot.
-- Groucho Marx
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users