Skip to content

This program calculates the price of European double-barrier knock-out calls by the use of binomial trees and Monte Carlo Simulations.

License

Notifications You must be signed in to change notification settings

pontazaricardo/Finance_European_double-barrier_knock-out_call

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Finance_European_double-barrier_knock-out_call

This program calculates the price of European double-barrier knock-out calls by the use of binomial trees and Monte Carlo Simulations.

demo

Inputs and Outputs

For this program, we have:

  1. Inputs: S (stock price), X (strike price), H (high barrier), L (low barrier), t (year), s (volatility in %), r (continuously compounded interest rate in %), and n (number of periods).
  2. Output: Prices given by both the binomial tree and the Monte Carlo simulation.

Notes

We need to assume L < S < H, i.e., the stock price is always between the lower and high barrier.

Usage

In MatLab, just run the given file.

Example

Suppose S = 95, X = 100, H = 140, L = 90, t = 1 (year), s = 25 (%), r = 10 (%), and n = 1000: 1. The price given by the tree is 1.457 2. The price given by the 1.94 (varies depending on the amount of paths of the Monte Carlo simulation).

demo

Because the second value is given by a Monte Carlo simulation, it will vary from run to run, as seen when comparing the image above with the image below.

demo2

In the previous two images we can see that the value of the Monte Carlo simulations shifted from 1.9460 to 1.5205.

About

This program calculates the price of European double-barrier knock-out calls by the use of binomial trees and Monte Carlo Simulations.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages