0
$\begingroup$

Is there a possibility to configure the period the barrier is active, using Quantlib for python? Namely to set up the start and the end dates we compare the spot vs the barrier.

If we look at quantlib-python-docs (https://quantlib-python-docs.readthedocs.io/en/latest/instruments/options.html?highlight=BarrierOption#ql.BarrierOption), the ql.BarrierOption class constructor seems not to have such a possibility. Should we use another class?

Any help is appreciated.

$\endgroup$
0
$\begingroup$

I would make your own payoff classes for the different types of Barrier Options. Then when you calculate the payoff you can specify which data to run or when to start the barrier payoff. Working on a similar homework now

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.