Bugs item #3407976, was opened at 2011-09-12 10:08
Message generated for change (Tracker Item Submitted) made by skaquant
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3407976&group_id=12740Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Sarp Kaya Acar (skaquant)
Assigned to: Nobody/Anonymous (nobody)
Summary: wrong discounting in BlackSwaptionEngine::calculate()
Initial Comment:
In BlackSwapEngine::calculate() the variable atmForward is calculated by using the forwardingTermStructure as the DiscountingSwapEngine is initialized by it. But the discounting swap should be intialised by the discoutCurve_ so that the fair swap rate is calculated in the \"two curve world\".
More precisely, the block
// using the forecasting curve
swap.setPricingEngine(boost::shared_ptr<PricingEngine>(
new DiscountingSwapEngine(swap.iborIndex()->forwardingTermStructure(), false)));
should be changed with
// using the discounting curve
swap.setPricingEngine(boost::shared_ptr<PricingEngine>(
new DiscountingSwapEngine(discountCurve_, false)));
Regards,
Sarp Kaya
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=112740&aid=3407976&group_id=12740------------------------------------------------------------------------------
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-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev