Re: Barrier options
Posted by
Yannis on
Jan 24, 2017; 1:05pm
URL: http://quantlib.414.s1.nabble.com/Barrier-options-tp17983p17990.html
You 're welcome!
I am not the author of BarrierOption, but I believe QuantLib can only price barrier options with european exercise rights, a fact that makes all such products treatable with an analytic solution, to the extent their underlying pays no discrete dividends.
The case where the option's underlying pays discrete dividends is different. In such a case you need to resort to the DividendBarrierOption class and price it using FdBlackScholesBarrierEngine or FdHestonBarrierEngine. Both of these engines are discrete methods based on finite differences and there exist no alternative analytic engine that can do the job.
Hope that helps,
Yannis
Mariano Zeron <[hidden email]> schrieb am 9:37 Dienstag, 24.Januar 2017:
Hi Yannis,
Thanks a lot for your quick response. I've done what you suggested and now I can use the Monte Carlo engine for barrier options using
boost::shared_ptr<PricingEngine> barrierEngineMC = MakeMCBarrierEngine<PseudoRandom, GeneralStatistics>(bsmProcess)
.withSteps(timeSteps)
.withSamples(nSamples);
Ended up using this as MCBarrierEngine needed every single parameter (non seem to be defined by default) and that was giving me problems.
Do you know by any chance which of the barrier options offered in Quantlib cannot be priced using an analytic solution? So far I had been using BarrierOption, but this type of product can be priced using an analytic engine.
All the best
Mariano
View this message in context:
Re: Barrier options------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot ------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org!
http://sdm.link/slashdot_______________________________________________
QuantLib-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-users