Lesson 15 of 15

Barrier Options

Barrier Options

Barrier options are path-dependent options that are either activated or cancelled if the underlying price hits a specified barrier level.

Types of Barrier Options

TypeActivated/cancelled when...
Down-and-outPrice falls below barrier → option cancelled (knocked out)
Down-and-inPrice falls below barrier → option activated (knocked in)
Up-and-outPrice rises above barrier → option cancelled
Up-and-inPrice rises above barrier → option activated

Down-and-Out Call

The most common barrier option. It behaves like a vanilla call, but is cancelled if the stock price ever touches or drops below the barrier B (where B < S).

Payoff={max(STK,0)if St>B for all t0if StB for any t\text{Payoff} = \begin{cases} \max(S_T - K, 0) & \text{if } S_t > B \text{ for all } t \\ 0 & \text{if } S_t \leq B \text{ for any } t \end{cases}

Monte Carlo Algorithm

For each path:

  1. Simulate step by step
  2. At each step, check if the price has hit or crossed the barrier
  3. If knocked out, the payoff is 0
  4. Otherwise, payoff = max(S_T - K, 0)

Effect of the Barrier

  • Barrier far below current price: rarely triggered → price ≈ vanilla call
  • Barrier close to current price: frequently triggered → price < vanilla call
  • As B → 0: down-and-out call → vanilla call
  • As B → S: down-and-out call → 0 (immediately knocked out)
Python runtime loading...
Loading...
Click "Run" to execute your code.