Discrete Barrier Option Calculator
Posted by Gary Pai
Input:
Show inputs of Monte Carlo Method
The we use Monte Carlo method to price discrete barrier option.How the Discrete Barrier Option Calculator Works
A barrier option is a vanilla call or put that is activated (knock-in) or cancelled (knock-out) when the underlying crosses a barrier level H. In practice, especially in FX, the barrier is checked only at fixed dates (semi-annually, quarterly or monthly) rather than continuously. This discrete barrier option calculator simulates asset paths and tests the barrier only on those monitoring dates. A down-and-out call, for example, is a call that is cancelled, optionally in exchange for a rebate, if the spot is at or below H on a monitoring date.
Discrete monitoring makes the option worth more than its continuously monitored twin: a knock-out survives paths that dip below the barrier between observations.
Pricing Methodology & Mathematical Formula
The underlying follows geometric Brownian motion under the risk-neutral measure, with domestic rate r and foreign rate rf:
Each of the NS paths is built from Ni time steps of size \(\Delta t = T/N_i\). For a knock-out call the discounted payoff on a path is
and the price is the sample mean over all paths, \(\hat V = \tfrac1{N_S}\sum_i \text{payoff}_i\). Knock-in options pay the vanilla payoff only when the barrier was breached, and puts replace the payoff with \(\max(X-S_T,0)\).
| Input | Meaning |
|---|---|
| S, X, T | Spot price, strike and time to maturity in years |
| r, rf | Domestic and foreign (or dividend) rates, annualised |
| σ | Annualised volatility |
| H, K | Barrier level and rebate amount |
| NS, Ni | Number of simulated paths and time steps per path |
| Monitoring | Semi-annual, quarterly or monthly dates; "all day" or "end of day" checks |
The output is the option price. Because it is a Monte Carlo estimate, results vary slightly between runs; the error shrinks like \(1/\sqrt{N_S}\), so raise NS for tighter prices.
Worked Example (Using Default Inputs)
The default inputs are spot 95, strike 100, maturity 1 year, r = 10%, rf = 0%, σ = 25%, barrier 90, rebate 20 paid when the barrier is hit, a knock-out call, semi-annual monitoring, 1,000 paths and 100 steps. Because 95 > 90 this is a down-and-out call. For reference, the same call without a barrier has Black-Scholes value \(d_1 = 0.320\), \(d_2 = 0.070\) and price of about 11.66. With the barrier, each path either earns the rebate (about 20 discounted to the hit date) or the vanilla payoff at expiry. Repeated runs of these defaults return roughly 19, which is higher than the vanilla value because the large rebate of 20 dominates; setting the rebate to 0 reduces the price below the vanilla 11.66, as expected for a knock-out.
Frequently Asked Questions
What is the difference between discrete and continuous barrier options?
A continuous barrier is monitored at every instant, so the closed-form formulas apply. A discrete barrier is checked only on set dates, so the knock-out probability is lower. A common approximation shifts the barrier by \(e^{\pm0.5826\,\sigma\sqrt{\Delta t}}\) (the Broadie-Glasserman-Kou correction), but simulation handles any schedule directly.
When should you use Monte Carlo instead of a trinomial tree for discrete barriers?
Trees and PDE solvers are fast and smooth for a single asset with a few monitoring dates, and give no sampling noise; see the discrete barrier trinomial tree calculator. Monte Carlo is preferable with many monitoring dates, path-dependent rebates or several risk factors, at the cost of statistical error.
Why does a very large rebate raise the price above the vanilla option?
The rebate is a cash flow received on knock-out. When it exceeds the option's likely payoff, being knocked out is more valuable than surviving.
Keywords: discrete barrier option calculator, FX, Foreign exchange derivatives
• May 26, 2013 •
Methods
Derivatives Markets
- Stock Options
Including Exotic Options - Interest Rate Derivatives
Short Rate Model - Credit Derivatives
structural Models and Reduced Models