Hi,
I want to use QuantLib to compute the implied volatility for an American option with dividends. I essentially follow the example here [0]. The issue I'm having is that initializing the BlackScholesProcess, which is required by the impliedVolatility function, uses a volatility term structure. In turn, this term structure takes in a Real for volatility, the thing I am trying to calculate. What's the correct way to get this initial volatility? I thought about using a BlackScholesCalculator and Brent solver to estimate it but wasn't sure if that was a good approach. Thanks, Alex Lamana ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
The impliedVolatility() function will ignore whatever you put into the volatility and only use the rest of the process. Just initialize it with any value. Luigi On Wed, Mar 25, 2015 at 3:50 PM, Alexander Lamana <[hidden email]> wrote:
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
ql/instruments/dividendvanillaoption.cpp, line 52. It calls ImpliedVolatilityHelper::clone, which creates a new process with the same underlying, risk-free rate and dividend yield but whose volatility is based on the quote he's going to use during the solving process. On Wed, Mar 25, 2015 at 4:15 PM, Alexander Lamana <[hidden email]> wrote:
------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |