Take the 2-minute tour ×
Quantitative Finance Stack Exchange is a question and answer site for finance professionals and academics. It's 100% free, no registration required.

I'd like to calculate the local volatility surface for a series of option strikes, similar to the surface described in this paper:

http://www.ederman.com/new/docs/gs-local_volatility_surface.pdf

This is the image I am referring to in the aforementioned paper:

enter image description here

I know QuantLib has the ability to do this - but what is the correct C# function call(s)?

I'm using the C# build of QuantLib, from: http://www.resolversystems.com/products/quantlib-binary/

share|improve this question
add comment

1 Answer

up vote 7 down vote accepted

Assuming you're referring to the local-volatility class implemented in <QuantLib/ql/termstructures/volatility/equityfx/localvolsurface.hpp>, it's among the several classes that are not exported through SWIG. You'll have to add it to the SWIG interface files (probably in volatilities.i), regenerate the wrappers and recompile them. If you need instructions on the building process, you can ask on the QuantLib mailing list.

share|improve this answer
    
Oooooh, so that's what I'm missing. Thanks! I'll work with the C++ version directly, once that's working I'll let you know. –  Contango Jun 8 '11 at 18:02
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.