Relative Content

Tag Archive for pythonoption-typestockbarrier

What’s wrong with my code in pricing barrier option using trinomial model?

I have a problem in pricing barrier option using trinomial model. I’ve tried to calculate the barrier option using black scholes and trinomial. For the stock price movements, it’s already convergent to black scholes. But when it comes to the barrier condition, it’s not novergent. Some of the values are not in the right place. For example, the black scholes calculation for call down-in barrier option is 10 and call down-out is 2, it’s considered to be true. But when I tried it with trinomial, the call down-in barrier option will be 5 and call down-out will be 10.