答复: Using local vol or Heston for MCBarrierEngine

Posted by cheng li on
URL: http://quantlib.414.s1.nabble.com/Using-local-vol-or-Heston-for-MCBarrierEngine-tp14843p14847.html

As I quickly look through, it seems MCVanillaEngine will fit your purpose.

 

Regards,

Cheng

 

发件人: Theo Boafo [mailto:[hidden email]]
发送时间: 2014115 1:55
收件人: [hidden email]; "Luigi Ballabio <luigi.ballabio"@gmail.com
主题: [Quantlib-users] Using local vol or Heston for MCBarrierEngine

 

Hi Luigi/Quantlib,

 

In mcbarrierengine.hpp, the constructor 

MCBarrierEngine(

             const boost::shared_ptr<GeneralizedBlackScholesProcess>& process,

             Size timeSteps,

             Size timeStepsPerYear,

             bool brownianBridge,

             bool antitheticVariate,

             Size requiredSamples,

             Real requiredTolerance,

             Size maxSamples,

             bool isBiased,

             BigNatural seed);

 

 

only takes in GeneralizedBlackScholesProcess, If I want to use hestonprocess for this class also, it does not look possible?

 

It may be possible if base class stochastic process was passed instead then, perhaps both  GeneralizedBlackScholesProcess and hestonprocess could be derived class objects could be passed.  I may be wrong here, not really a c++ guru.

 

for example I would like to price a barrier option in monte carlo using say local vol, heston, bates and slv(stochastic local vol) processes and compare their pvs, how do I do it using MCBarrierEngine?

 

Regards

 

Theo


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today.
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users