Hello all,
the QuantLib test-suite (capfloor.cpp) checks that the put/call parity (capNPV - floorNPV = swapNPV) holds. It seems to me that this test is passed successfully only as long as one chooses term structure daycount Actual360(), see function setup() in capfloor.cpp.
After setting this to e.g. ActualActual(ActualActual::ISDA) and keeping anything else unchanged, the test suite fails with the following messages ..
Running 236 test cases...
capfloor.cpp(283): fatal error in "CapFloorTest::testParity": put/call parity violated:
length: 1 years
volatility: 1.000000 %
strike: 3.000000 %
cap v alue: 2.01507
floor value: 0
swap value: 1.94683.. because the cap price is overstated.
I assume that the term structure daycounter should not have this effect on pricing results. Shouldn't it be arbitrary?
Would you please have a quick look and correct me if I am wrong.
I noticed this while building a small caplet volatility bootstrap tool that I'd like to contribute (eventually) if there is any interest.
Many thanks for your efforts,
Roland
Der <a title="http://WEB.DE" onclick="return top.js.OpenExtLink(window,event,this)" href="http://web.de/" target="_blank">WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
<a title="http://smartsurfer.web.de/?mc=100071&distributionid=000 000000071" onclick="return top.js.OpenExtLink(window,event,this)" href="http://smartsurfer.web.de/?mc=100071&distributionid=000%0A+000000071" target="_blank">http://smartsurfer.web.de/?mc=100071&distributionid=000000000071
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV" target="_blank"> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
QuantLib-users mailing list
[hidden email]
<a onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.sourceforge.net/lists/listinfo/quantlib-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/quantlib-users
| Free forum by Nabble | Edit this page |