Mode:
Duration:
1
2
3
4
5
time_steps = 100
num_paths = 10000
mc_engine = ql.MCEuropeanEngine(process, 'pseudo', timeSteps=time_steps, requiredSamples=num_paths)
option.setPricingEngine(mc_engine)
mc_price = option.NPV()Coding works best on desktop or with an external keyboard.