sergvil | 7 Feb 06:03
Picon
Gravatar

.NET Framework 4.0 Application Runtime Exceptions Problem


Hello,

I have been working with QuantLib since Oct'11 and I think it works great. I
used it with .NET Framework 3.5 and it worked perfectly. I use QuantLib and
SWIG for C#.

Now I am developing a .NET Framework 4 WPF application with some Quantlib
Bond Calculations and I am having some problems:

When I make some testing, each time the app tries to create any QuantLib
object or tries to execute any method it throws this exception (click on
name for description):

http://msdn.microsoft.com/es-es/library/0htdy0k3%28v=vs.100%29.aspx
pInvokeStackImbalance 

When I try the application on Visual Studio and I have
PInvolkeStackImbalance activated on MDA exceptions, I use to receive several
PInvoke warnings (green coloured) on each execution, but application works
perfectly. But when I try to execute on Windows, those warnings are
exceptions that cause application to crash.

I tried to fix it making some modifications on QuantLib_vc10 project. I
found at other forum this solution for the exception we are talking about:

On each dll method call defined on NQuantLibcPINVOKE that throws the
exception, like this:

  [DllImport("NQuantLibc", EntryPoint="CSharp_new_TARGET")]
(Continue reading)

Luigi Ballabio | 6 Feb 23:22
Picon

QuantLib course

Hi all,
    I'm not sure that this fits the mailing-list charter, so I'll keep
it short.  Thanks to MoneyScience, I'll be teaching a QuantLib course
on May 21-23rd. Details at <http://goo.gl/co0uG>.

Over and out,
    Luigi

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Marie-Aude BRUANT | 27 Jan 18:26
Picon
Gravatar

PricingEngine for American and European option with discrete dividends

Dear all,

I’m trying to use QuantLib for the valuation of DividendVanillaOption. (I’m
a new and impressed user)
I’ve made a little test to check the consistency of the results:
I’ve assumed that the underlying pays discrete dividends equal to 0, and
compare with an underlying who doesn’t pay any dividend.
In the European exercise case, all it’s OK. However, in the American
exercise case they are a difference. :( In this context, they must be all
equal.
I use the PricingEngine FDDividendAmericanEngine and FDAmericanEngine for
American exercise and AnalyticDividendEuropeanEngine and
AnalyticEuropeanEngine for European exercise.

///////////////////////////  RESULTS 
////////////////////////////////////////////////
Description of the option:        IBM Option
Date of maturity:                       January 26th, 2013
Type of the option:                   Call
Strike of the option:                  190
Discrete dividends
Dates                           Dividends
February 10th, 2012             0
May 10th, 2012        	        0
August 10th, 2012               0
November 10th, 2012             0
NPV of the European Option with discrete dividends=0:   	17.9647
NPV of the European Option without dividend:			 17.9647
NPV of the American Option with discrete dividends=0: 	18.5707
NPV of the American Option without dividend: 			17.9647
(Continue reading)

Marie-Aude BRUANT | 27 Jan 18:33
Picon
Gravatar

PricingEngine for American and European option with discrete dividends

Dear all,

I’m trying to use QuantLib for the valuation of DividendVanillaOption. (I’m
a new and impressed user)
I’ve made a little test to check the consistency of the results:
I’ve assumed that the underlying pays discrete dividends equal to 0, and
compare with an underlying who doesn’t pay any dividend.
In the European exercise case, all it’s OK. However, in the American
exercise case they are a difference. :( In this context, they must be all
equal.
I use the PricingEngine FDDividendAmericanEngine and FDAmericanEngine for
American exercise and AnalyticDividendEuropeanEngine and
AnalyticEuropeanEngine for European exercise.

///////////////////////////  RESULTS 
////////////////////////////////////////////////
Description of the option:        IBM Option
Date of maturity:                       January 26th, 2013
Type of the option:                   Call
Strike of the option:                  190
Discrete dividends
Dates                           Dividends
February 10th, 2012             0
May 10th, 2012        	        0
August 10th, 2012               0
November 10th, 2012             0
NPV of the European Option with discrete dividends=0:   	17.9647
NPV of the European Option without dividend:			 17.9647
NPV of the American Option with discrete dividends=0: 	18.5707
NPV of the American Option without dividend: 			17.9647
(Continue reading)

Smith, Dale | 26 Jan 22:08
Favicon

Source of cached NPV for caps and floors

Hello,

 

After reading the source for the capfloor.cpp unit test, I realized there is no indication of how the cached values in CapFloorTest::testCachedValue are calculated. Ditto for the other hard-coded values in the other methods. Does anyone know the source for these calculations? I did a Google search to make sure this wasn’t answered already on the mailing list. I can’t find anything relevant, so pointers to any previous message threads are appreciated.

 

Thanks,

Dale Smith, Ph.D.

Senior Financial Quantitative Analyst

Risk & Compliance

Fiserv.

107 Technology Park

Norcross, GA 30092

Office: 678-375-5315

Mobile: 678-982-6599

Mail: dale.smith <at> fiserv.com

www.fiserv.com

 

------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Tawanda Gwena | 24 Jan 01:05
Picon
Gravatar

QuantLib on iPhone

Hi all,


I've added great functionality to my QuantLib project on the iPhone. I hope Apple's
conditions on apps are now lenient enough to allow it on the store.

New features include: 
    an extensive graphics library
    direct downloading of historical stock and currency data


Here is the youtube video. 


Please do send me comments on tgwena <at> gmail.com


------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Luigi Ballabio | 23 Jan 17:33
Picon

Re: Double barrier options in QL?

On Mon, Jan 23, 2012 at 3:43 PM, Giorgio Pazmandi
<g.pazmandi <at> themaconsulting.ch> wrote:
>    I have seen that the current version of QL supports single barrier
> options (Down/Up and In/Out), but I didn't see any support for double
> barrier ("corridor") options. Is there an implementation that I did not
> find? If not, is support for such instruments planned in one of the next
> releases?

No, there's no such implementation.  There are no plans either, as far
as I know.

Luigi

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
Giorgio Pazmandi | 23 Jan 15:43
Picon
Gravatar

Double barrier options in QL?

Hi all,

   I have seen that the current version of QL supports single barrier options (Down/Up and In/Out), but I didn't see any support for double barrier ("corridor") options. Is there an implementation that I did not find? If not, is support for such instruments planned in one of the next releases?

 

Thank you in advance and best regards,

 

Giorgio Pazmandi

THEMA Consulting

 

 

This message (including any attachments) contains confidential and/or proprietary information intended only for the addressee. Any unauthorized disclosure, copying, distribution or reliance on the contents of this information is strictly prohibited and may constitute a violation of law. If you are not the intended recipient, please notify the sender immediately by responding to this e-mail, and delete the message from your system.  If you have any questions about this e-mail please notify the sender immediately.

 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
Christoph Breig | 22 Jan 23:11
Gravatar

Volatility Surface

Hi all,

 

is there any possibility to create a volatiltiy surface from which I can draw an implied vola for a given moneyness and a given maturity (including extrapolation)?

 

Cheers and thx

Chris

 

------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users
StephenWong | 13 Jan 02:26
Picon

ConvexMonotone Interpolator compatible with PiecewiseYieldCurve?


Hi all,

Does anyone know if the class PiecewiseYieldCurve can be used with the
ConvexMonotone Interpolator or not?

I seem to be able to only use the Linear, LogLinear or Cubic Interpolator
with PiecewiseYieldCurve but not ConvexMonotone. If I use the latter exactly
like how I use the formers with the PiecewiseYieldCurve in pricing
something, say some bonds, I run into problems.

Anyone is able to use it successfully?

Thanks!

--

-- 
View this message in context: http://old.nabble.com/ConvexMonotone-Interpolator-compatible-with-PiecewiseYieldCurve--tp33131655p33131655.html
Sent from the quantlib-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
Dagur Gunnarsson | 6 Jan 23:52
Picon
Favicon

Fixed rate bond

hello,

Is there a simple way to simulate a bond(fixed rate) that pays a single coupon on the maturity day as well as the principal, in QuantLib.  I have tried to create a Fixed rate bond that has the FirstCouponDate = MaturityDate = FirstInstallmentDate but then I get the error std::exception: first date (March 10th, 2015) out of effective-termination date range [March 10th, 2003, March 10th, 2015)...

regards
D.G.

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
QuantLib-users mailing list
QuantLib-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users

Gmane