volSpread format, Fw: Fw: SwaptionVolCube2

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

volSpread format, Fw: Fw: SwaptionVolCube2

Yan Kuang

Hi,

I have found the error in my addin. The volSpread (const std::vector<std::vector<Handle<Quote> > >& volSpreads) of SwaptionVolCube2
takes data of the form (same option expiry in same block):




while my market data here (same swap tenor in the same block) is:



I have wrote a little function to convert my format before call the constructor, and tested ok.

My question is which format is market convention? If the answer is both format, I would suggest to put my function
in the constructor, (needs to add an additional flag to indicate which format).

Cheers,
Yan






----- Forwarded by Yan Kuang/CORPAU/WBCAU/WBG on 17/09/2010 08:55 AM -----
Yan Kuang/CORPAU/WBCAU/WBG

15/09/2010 02:58 PM

To
"Circo Giuseppe (DAM)" <[hidden email]>
cc
[hidden email]
Subject
Re: [Quantlib-users] Fw: SwaptionVolCube2<a href=Notes://PECCML01/CA2573140016FD1E/DABA975B9FB113EB852564B5001283EA/B84E7FE61EDABAE8CA25779E002F9689>Link




Hi Circo,

Thanks, I tested (using qlSwaptionVTSatmStrike, qlSwaptionVTSVolatility2) the example for 1y2y, the interpolated vol spread
is not too far from input. It's quite usable. I must have done something wrong in my addin.



Thank you very much,
Yan



"Circo Giuseppe (DAM)" <[hidden email]>

14/09/2010 06:39 PM

To
"Yan Kuang" <[hidden email]>, <[hidden email]>
cc
Subject
Re: [Quantlib-users] Fw: SwaptionVolCube2





Hi Yan,
 
There is a sample in QuantLibXL-0.9.7\Workbooks\StandaloneExamples\SerializationDemo\Models\MarketData
 
Here is a simplified extract,
 
Ciao,
 
 


From: Yan Kuang [mailto:[hidden email]]
Sent:
14 September 2010 09:01
To:
[hidden email]
Subject:
[Quantlib-users] Fw: SwaptionVolCube2



Hi All,


I found the issue (see email below) in my own excel addin, I understand it may not warrant a check of SwaptionVolCube2.


I decided to check with QuantLibXLL. I just built QuantLibXL_full_vc9 successfully. However when I read QuantLibXL document,

incidentally I found we already have function
 qlSwaptionVolCube2 . Surely one must have built a spreadsheet
to test
qlSwaptionVolCube2.  Just wondering if I can have the sample spreadsheet with qlSwaptionVolCube2
to start with?


Many thanks,
Yan



----- Forwarded by Yan Kuang/CORPAU/WBCAU/WBG on 14/09/2010 03:34 PM -----
Yan Kuang/CORPAU/WBCAU/WBG

08/09/2010 10:39 AM


To
[hidden email]
cc
Subject
SwaptionVolCube2<a href=Notes://peccml01/CA2573140016FD1E/DABA975B9FB113EB852564B5001283EA/A5A2A684ABC2A4EDCA257686001AA327>Link






Hi All,


Just about one year inaction. I am back to try quantlib again. I am still using 0.9.7.


I am doing a test on CMS replication. I use SwaptionVolCube2 to get black vol at different strikes. The market data

for swaption is skew (vol drops when strike increase), see row 82 in Sheet 'Swaption Vol Market Data'.


ATM swap rate is about 6.14%, yet I get the higher vol than atm vol when strikes above 6.14, see column E and F in sheet 'cms rep'.


Enclosed please the workbook and relevant code.


Many thanks for the help,


Yan



PS, has anyone has luck to build a cash-future-swap curve which match Murex reasonable well? By that I mean forward simple

rate difference is with 1bp. I don't have the luck, as some section of the curve has more than 10bp difference in my experience.



Unless otherwise stated, this email is confidential. If received in error, please delete and inform the sender by return email. Unauthorised use, copying or distribution is prohibited. Westpac Banking Corporation (ABN 33 007 457 141) is not responsible for viruses, or for delays, errors or interception in transmission. Unless stated or apparent from its terms, any opinion is not the opinion of Westpac Banking Corporation. This message also includes information on Westpac Institutional Bank available at westpac.com.au/wibinfo[attachment "Book2.xls" deleted by Yan Kuang/CORPAU/WBCAU/WBG]
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev_______________________________________________
QuantLib-users mailing list
QuantLib-users@...
https://lists.sourceforge.net/lists/listinfo/quantlib-users


Unless otherwise stated, this email is confidential. If received in error, please delete and inform the sender by return email. Unauthorised use, copying or distribution is prohibited. Westpac Banking Corporation (ABN 33 007 457 141) is not responsible for viruses, or for delays, errors or interception in transmission. Unless stated or apparent from its terms, any opinion is not the opinion of Westpac Banking Corporation. This message also includes information on Westpac Institutional Bank available at westpac.com.au/wibinfo

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users