Hello all, I would like to use a Local Vol for pricing which was generated outside QL. Originally the LocalVol comes from Murex, having different strikes for each maturity. It can be easily extracted but then not easily plugged into QuantLib.Does any has some experience or a any ideas how a sophisticated approach should look like? Passing some more or different arguments to the process would be nice, telling the it which vola to take? ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Stephan,
I'd suggest the following approach: 1, implement the interface class LocalVolCurve, in particular overwrite the function localVolImp(Time, Real) so that it return the Murex values. 2, create a new class
class LocalVolBlackScholesProcess : public GeneralizedBlackScholesProcess { public: const Handle<LocalVolTermStructure>& localVolatility() const; };
which returns the Murex backed local volatility surface....and hmm you must declare this method virtual in GeneralizedBlackScholesProcess. not very elegant, I know.
regards Klaus
On Sunday, October 06, 2013 08:36:54 PM stephan buschmann wrote: Hello all, I would like to use a Local Vol for pricing which was generated outside QL. Originally the LocalVol comes from Murex, having different strikes for each maturity. It can be easily extracted but then not easily plugged into QuantLib. ql\termstructures\volatility\equityfx\localvolsurface.cpp takes care about the internal calculation. But I dont see a clean and well designed way to override this atm. Many thanks! Stephan ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Hi Klaus, many thanks for this thoughts!
I will take a closer look to the implementation. On Mon, Oct 7, 2013 at 9:42 PM, Klaus Spanderen <[hidden email]> wrote: > Hi Stephan, > > > > I'd suggest the following approach: > > 1, implement the interface class LocalVolCurve, in particular overwrite the > function localVolImp(Time, Real) so that it return the Murex values. > > 2, create a new class > > > > class LocalVolBlackScholesProcess : public GeneralizedBlackScholesProcess { > > public: > > const Handle<LocalVolTermStructure>& localVolatility() const; > > }; > > > > which returns the Murex backed local volatility surface....and hmm you must > declare this method virtual in GeneralizedBlackScholesProcess. not very > elegant, I know. > > > > regards > > Klaus > > > > On Sunday, October 06, 2013 08:36:54 PM stephan buschmann wrote: > > Hello all, > > I would like to use a Local Vol for pricing which was generated outside QL. > Originally the LocalVol comes from Murex, having different strikes for each > maturity. It can be easily extracted but then not easily plugged into > QuantLib. > > ql\termstructures\volatility\equityfx\localvolsurface.cpp takes care about > the internal calculation. But I dont see a clean and well designed way to > override this atm. > Does any has some experience or a any ideas how a sophisticated approach > should look like? Passing some more or different arguments to the process > would be nice, telling the it which vola to take? > > Many thanks! > > Stephan > > > ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk _______________________________________________ QuantLib-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/quantlib-users |
Free forum by Nabble | Edit this page |