On Mon, 2007-11-05 at 13:43 +0100, Sebastián Miranda wrote:
> I'm implementing a service that retrieves a file from an information
> provider with option's strike, term and price.
> On the other side, I have the yield curve and the discrete dividends
> paid by the asset. With all this, I need to get the implied volatility
> surface using Black76...
You can use the DividendVanillaOption class and its impliedVolatility()
method. An example is in test-suite/europeanoption.cpp; it's done with
VanillaOption, i.e., without discrete dividends, but you can adapt it to
an option with dividends.
Luigi
--
There's no sense in being precise when you don't even know what you're
talking about.
-- John von Neumann
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>
http://get.splunk.com/_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users