BarrierMC function

Barrier option valuation via Monte Carlo (MC) simulation.