Robert Buchanan | 17 Jul 23:30
Picon
Favicon

Question about asian option pricing engines

Hello,

	I was browsing the online documentation for QuantLib's asian option  
pricing engines and now I have a question. I see there are pricing  
engines for continuously sampled, geometrically averaged asian  
options (an analytic engine), for discretely sampled, geometrically  
averaged asian options (an analytic engine), and for discretely  
sampled, arithmetically averaged asian options (a Monte Carlo  
engine). However, I did not see a pricing engine for  continuously  
sampled, arithmetically averaged asian options. Why is that? Is the  
developer group waiting for someone to volunteer to implement that?  
Are there any PDE, perhaps finite difference-based pricing engines  
for these types of asian options?

Thanks,
Bob

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
MJC1 | 17 Jul 16:24
Favicon

negative yields


Hi,

I'm using the yield to maturity and IRR methods for inflation linked bonds.
When the real yield is <0 the methods are returning errors.

Does anybody have any suggestions for alternative methods to use to compute
yield for this asset class?

Thanks,

Mike
--

-- 
View this message in context: http://www.nabble.com/negative-yields-tp18509729p18509729.html
Sent from the quantlib-users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
Scott Robik | 14 Jul 20:33

Using QuantLib for pricing Variance Swaps...

All,
 
I'm interested in using QuantLib for pricing variance swaps. I've setup a simple project following a similar pattern to the packaged examples. Checking the class reference in the documentation, I see three classes that are applicable...
  • VarianceSwap - This is a derived Instrument class and I believe is the first thing that must be setup
  • MCVarianceSwapEngine and ReplicatingVarianceSwapEngine one or the other of these two pricing engine classes are use in the constructor for the above Instrument object to set the pricing engine.
The deal specific are straight forward i.e. strike, notional, maturity, but some of the other parameters are not so clear...
  • For position, I would assume this is something like "long" or "short", but I could not find this type defined in the documentation.
  • If I were to value this using ReplicatingVarianceSwapEngine which values the swap based on a portfolio of strike weighted listed options. Where do you enter the mkt data i.e. the portfolio of listed options.
  • What process is appropriate for the StochasticProcess passed into the constructor of the Instrument object? My guess is that for equity variance swaps such as the S&P 500 index futures either a GeneralizedBlackScholesProcess or BlackScholesProcess process would work best.
What does the waning "This class does not manage seasoned variance swaps" mean? Is this a short coming in the design of the class and I can address this by modifying the VarianceSwap class? Is there anything else I'm missing in order to price a variance swaps using QuantLib?

Scott L. Robik 
ICAP North America
Harborside Financial Center, 1100 Plaza 5
Jersey City, NJ 07311-4996

Main: (212) 815-7412    Fax: (212) 815-7997
Mobil: (201) 699-2025   Email: scott.robik <at> us.icap.com

 

 

**********************************************************************

This communication and all information (including, but not limited to,

market prices/levels and data) contained therein (the "Information") is

for informational purposes only, is confidential, may be legally

privileged and is the intellectual property of ICAP plc and its affiliates

("ICAP") or third parties. No confidentiality or privilege is waived or

lost by any mistransmission. The Information is not, and should not

be construed as, an offer, bid or solicitation in relation to any

financial instrument or as an official confirmation of any transaction.

The Information is not warranted, including, but not limited, as to

completeness, timeliness or accuracy and is subject to change

without notice. ICAP assumes no liability for use or misuse of the

Information. All representations and warranties are expressly

disclaimed. The Information does not necessarily reflect the views of

ICAP. Access to the Information by anyone else other than the

recipient is unauthorized and any disclosure, copying, distribution or

any action taken or omitted to be taken in reliance on it is prohibited. If

you receive this message in error, please immediately delete it and all

copies of it from your system, destroy any hard copies of it and

notify the sender.

**********************************************************************

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Andrea Bellucci | 14 Jul 10:06
Picon

Problems with object handler

Hi,t

Maybe someone could help me to build object handler with visual c++ 2005.
I tried to follow the instructions
QuantLibXL but when I'm trying to build log4cxx I have these errors:

1>------ Build started: Project: log4cxx, Configuration: Release Win32 ------
1>Compiling...
1>timezone.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>threadspecificdata.cpp
1>..\..\src\threadspecificdata.cpp(22) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>thread.cpp
1>..\..\src\thread.cpp(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>telnetappender.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>system.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>syslogwriter.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>syslogappender.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>stringmatchfilter.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>static.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socketoutputstream.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socketnode.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socketinputstream.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socketimpl.cpp
1>..\..\src\socketimpl.cpp(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>sockethubappender.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socketappender.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>socket.cpp
1>..\..\src\socket.cpp(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>simplelayout.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>serversocket.cpp
1>..\..\src\serversocket.cpp(20) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>semaphore.cpp
1>..\..\src\semaphore.cpp(22) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>rootcategory.cpp
1>c:\build_ql_0_9_0\log4cxx\include\log4cxx/helpers/criticalsection.h(25) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
1>Generating Code...

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Chris Kenyon | 13 Jul 22:05
Picon
Favicon

Re: BFS2008

Hi Neil,

good idea.  I'll be there - are you going to the opening talks on Tuesday afternoon/evening?

Regards,
Chris (chris.kenyon <at> yahoo.com)
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Philip Corriher | 11 Jul 18:57

VAR?

Hi,

I am a huge fan of you guys.

I am looking for a way to do a Value At Risk calculation as well as lognormally distributed returns etc.

Can you point me in the right direction on what tools to use?

Thanks!

Philip

 

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Neil Firth | 11 Jul 18:14
Picon

Bachelier conference

Hi,

 

I am planning to attend the Bachelier conference next week in London. Are there any other Quantlib users attending? It could be a good opportunity to put some faces to names, either at lunch, or in the pub.

 

http://www.bfs2008.com/

 

Best Regards,

Neil Firth

 

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
snovik | 6 Jul 23:49
Picon

Performance


How long does it take to run an EquityOption example an a typical pc? By
typical I mean something like duo-core 2GHz

I have a feeling that it take too long on my machine.
--

-- 
View this message in context: http://www.nabble.com/Performance-tp18307056p18307056.html
Sent from the quantlib-users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
cc2008 | 8 Jul 19:08
Picon
Favicon

HestonDAXCalibration with dividends


Hi, 
 I've modified parts of the test-suite/hestonmodel.cpp to incorporate
dividends. Specifically, I've changed the testDAXCalibration method to
include some descrete divident values (paid at the same dates in the
program) as follows (full source code attached):

vector<Real> dividends;

for (i = 0; i < 8; ++i) {

        dates.push_back(settlementDate + t[i]);

        rates.push_back(r[i]);

        dividends.push_back(0.1); 

}

 Handle<YieldTermStructure> dividendTS(
  			    boost::shared_ptr<YieldTermStructure>(
  			    new ZeroCurve(dates, dividends, dayCounter))); 

When I run the program, it aborts. On Linux, I get the following trace using
gdb.
Continuing.
Testing Heston model calibration using DAX volatility data...

Program received signal SIGABRT, Aborted.
0x0000002a9643f479 in raise () from /lib64/tls/libc.so.6
(gdb) where
#0  0x0000002a9643f479 in raise () from /lib64/tls/libc.so.6
#1  0x0000002a96440abf in abort () from /lib64/tls/libc.so.6
#2  0x0000002a9606fca6 in __cxxabiv1::__terminate ()
   from /usr/lib64/libstdc++.so.5
#3  0x0000002a9606fcd3 in std::terminate () from /usr/lib64/libstdc++.so.5
#4  0x0000002a9606fdc3 in __cxa_throw () from /usr/lib64/libstdc++.so.5
#5  0x0000000000489b6e in InterpolatedZeroCurve (this=<value optimized out>, 
    dates=<value optimized out>, yields=<value optimized out>, 
    dayCounter=<value optimized out>, interpolator=<value optimized out>)
    at /QuantLib-0.8.1/ql/termstructures/yieldcurves/zerocurve.hpp:150
#6  0x000000000043d370 in main (argc=<value optimized out>, 
    argv=<value optimized out>) at HestonDAXCalibration.cpp:73

Could someone point out what I'm doing wrong. Thank you very much. 

http://www.nabble.com/file/p18343830/HestonDAXCalibration.cpp
HestonDAXCalibration.cpp 
--

-- 
View this message in context: http://www.nabble.com/HestonDAXCalibration-with-dividends-tp18343830p18343830.html
Sent from the quantlib-users mailing list archive at Nabble.com.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
Eric Ehlers | 6 Jul 00:09
Picon
Favicon

OH/QLA/QLXL Support Offline

Hi All,

I'm on vacation 8-18 June and will respond to any unanswered
ObjectHandler / QuantLibAddin / QuantLibXL questions when I get
back.

Regards,
Eric

-------------------------
Eric Ehlers
nazcatech sprl | Brussels | http://www.nazcatech.be
Distributed computing for pricing analytics - Use Microsoft
Excel as a client to the Grid

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
yong cai | 1 Jul 15:30
Picon
Favicon

Re: Simulating multiple correlated stochastic processes

 

 Great to learn the Quantlib. I would like to start with building a USD term structure with Euro Dollar Futures and Swap contracts as most IB shops do:

 

 Short end:  ED upto 4 years

 Rest:         Swap contract upto 40 years

 

 I saw examples using fixed-rate-bond and flat TS, but not sure how to build with the mix.

 

 Thanks for the help.

 

 Yong



--- On Tue, 7/1/08, Luigi Ballabio <luigi.ballabio <at> gmail.com> wrote:

From: Luigi Ballabio <luigi.ballabio <at> gmail.com>
Subject: Re: [Quantlib-users] Simulating multiple correlated stochastic processes
To: yongcai0 <at> yahoo.com
Date: Tuesday, July 1, 2008, 9:05 AM

Yong, please post the question to the mailing list. It is useful for everybody. Luigi -- -- Do the right thing. It will gratify some people and astonish the rest. -- Mark Twain

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Gmane