## Supported Energy Derivative Functions

### Asian Option

An *Asian* option is a path-dependent option with a payoff
linked to the average value of the underlying asset during the life (or some part of
the life) of the option. They are similar to lookback options in that there are two
types of Asian options: fixed (average price option) and floating (average strike
option). Fixed Asian options have a specified strike, while floating Asian options
have a strike equal to the average value of the underlying asset over the life of
the option.

There are four Asian option types, each with its own characteristic payoff formula:

Fixed call (average price option): $$\mathrm{max}(0,{S}_{av}-X)$$

Fixed put (average price option): $$\mathrm{max}(0,X-{S}_{av})$$

Floating call (average strike option): $$\mathrm{max}(0,S-{S}_{av})$$

Floating put (average strike option): $$\mathrm{max}(0,{S}_{av}-S)$$

where:

$${S}_{av}$$ is the average price of underlying asset.

$$S$$ is the price of the underlying asset.

$$X$$ is the strike price (applicable only to fixed Asian options).

$${S}_{av}$$ is defined using either a geometric or an arithmetic average.

The following functions support Asian options.

Function | Purpose |
---|---|

Price European or American Asian options using the Longstaff-Schwartz model. | |

Calculate prices and sensitivities of European or American Asian options using the Longstaff-Schwartz model. | |

Price European geometric Asian options using the Kemna Vorst model. | |

Calculate prices and sensitivities of European geometric Asian options using the Kemna Vorst model. | |

Price European arithmetic Asian options using the Levy model. | |

Calculate prices and sensitivities of European arithmetic Asian options using the Levy model. | |

Calculate prices of European discrete arithmetic fixed Asian options using the Haug, Haug, Margrabe model. | |

Calculate prices and sensitivities of European discrete arithmetic fixed Asian options using the Haug, Haug, Margrabe model | |

Calculate prices of European arithmetic fixed Asian options using the Turnbull Wakeman model. | |

Calculate prices and sensitivities of European arithmetic fixed Asian options using the Turnbull Wakeman model. | |

Price an Asian option from a Cox-Ross-Rubinstein binomial tree. | |

Price an Asian option from an Equal Probabilities binomial tree. | |

Price an Asian option using an implied trinomial tree (ITT). | |

Price an Asian option using a standard trinomial tree. | |

Construct an Asian option. |

### Barrier Option

A *barrier* option is similar to a vanilla put or call
option, but its life either begins or ends when the price of the underlying asset
passes a predetermined barrier value. There are four types of barrier
options.

#### Up Knock-In

This option becomes effective when the price of the underlying asset passes above a barrier that is above the initial asset price. Once the barrier has knocked in, it will not knock out even if the price of the underlying instrument moves below the barrier again.

#### Up Knock-Out

This option terminates when the price of the underlying asset passes above a barrier that is above the initial stock price. Once the barrier has knocked out, it will not knock in even if the price of the underlying instrument moves below the barrier again.

#### Down Knock-In

This option becomes effective when the price of the underlying asset passes below a barrier that is below the initial stock price. Once the barrier has knocked in, it will not knock out even if the price of the underlying instrument moves above the barrier again.

#### Down Knock-Out

This option terminates when the price of the underlying asset passes below a barrier that is below the initial stock price. Once the barrier has knocked out, it will not knock in even if the price of the underlying instrument moves above the barrier again.

#### Rebates

If a barrier option fails to exercise, the seller may pay a rebate to the buyer of the option. Knock-outs may pay a rebate when they are knocked out, and knock-ins may pay a rebate if they expire without ever knocking in.

The following functions support barrier options.

Function | Purpose |
---|---|

Price barrier option using finite difference method. | |

Calculate barrier option price and sensitivities using finite difference method. | |

Price European or American barrier options using Monte Carlo simulations. | |

Price European barrier options using Black-Scholes option pricing model. | |

Price a barrier option from a Cox-Ross-Rubinstein binomial tree. | |

Price a barrier option from an Equal Probabilities binomial tree. | |

Price a barrier option using an implied trinomial tree (ITT). | |

Price a barrier options using a standard trinomial tree. |

### Double Barrier Option

A *double barrier* option is similar to the standard single
barrier option except that they have two barrier levels: a lower barrier (LB) and an
upper barrier (UB). The payoff for a double barrier option depends on whether the
underlying asset remains between the barrier levels during the life of the option.
Double barrier options are less expensive than single barrier options as the
probability of being knocked out is higher. Because of this, double barrier options
allow investors to achieve reduction in the option premiums as and match an
investor’s belief about the future movement of the underlying price process.

There are two types of double barrier options:

Double Knock-in

This option becomes effective when the price of the underlying asset reaches one of the barriers. It gives the option holder, the right but not the obligation to buy or sell the underlying security at the strike price, if the underlying asset goes above or below the barrier levels during the life of the option.

Double Knock-out

This option gives the option holder, the right but not the obligation to buy or sell the underlying security at the strike price, as long as the underlying asset remains between the barrier levels during the life of the option. This option terminates when the price of the underlying asset passes one of the barriers.

The following functions support double barrier options.

Function | Purpose |
---|---|

Price European double barrier options using the Black-Scholes option pricing model. | |

Calculate the price and sensitivities for a European double barrier options using the Black-Scholes option pricing model. | |

Price double barrier option prices using the finite difference method. | |

Calculate the price and sensitivities for a double barrier option using the finite difference method. |

### Vanilla Option

A *vanilla option* is a category of options that includes
only the most standard components. A vanilla option has an expiration date and
straightforward strike price. American-style options and European-style options are
both categorized as vanilla options.

The payoff for a vanilla option is as follows:

For a call: $$\mathrm{max}(St-K,0)$$

For a put: $$\mathrm{max}(K-St,0)$$

where:

*St* is the price of the underlying asset at time
*t*.

*K* is the strike price.

The following functions support specifying or pricing a vanilla option.

Function | Purpose |
---|---|

Price European, Bermudan, or American vanilla options using the Longstaff-Schwartz model. | |

Calculate European, Bermudan, or American vanilla option prices and sensitivities using the Longstaff-Schwartz model. | |

Calculate vanilla option prices using finite difference method. | |

Calculate vanilla option prices and sensitivities using finite difference method. | |

Calculate American options prices using Barone-Adesi and Whaley option pricing model. | |

Calculate American options prices and sensitivities using Barone-Adesi and Whaley option pricing model. | |

Calculate American call option prices using Roll-Geske-Whaley option pricing model. | |

Calculate American call option prices or sensitivities using Roll-Geske-Whaley option pricing model. | |

Calculate vanilla option price by local volatility model, using finite differences. | |

Price American options using Bjerksund-Stensland 2002 option pricing model. | |

Determine American option prices or sensitivities using Bjerksund-Stensland 2002 option pricing model. | |

Calculate vanilla option price or sensitivities by local volatility model, using finite differences. | |

Calculate vanilla option price by Heston model using finite differences. | |

Calculate vanilla option price and sensitivities by Heston model using finite differences. | |

Calculates vanilla European option price by Bates model using finite differences. | |

Calculates vanilla European option price and sensitivities by Bates model using finite differences. | |

Calculates vanilla European option price by Merton76 model using finite differences. | |

Calculates vanilla European option price and sensitivities by Merton76 model using finite differences. | |

Calculate option price by Bates model using FFT and FRFT. | |

Calculate option price by Heston model using FFT and FRFT. | |

Calculate option price by Merton76 model using FFT and FRFT. | |

Price an option from a Cox-Ross-Rubinstein binomial tree. | |

Price an option from an Equal Probabilities binomial tree. | |

Price an option using an implied trinomial tree (ITT). | |

Price an option using a standard trinomial tree. |

### Spread Option

A *spread option* is an option written on the difference of
two underlying assets. For example, a European call on the difference of two assets
*X1* and *X2* would have the following pay off
at maturity:

$$\mathrm{max}(X1-X2-K,0)$$

where:

*K* is the strike price.

The following functions support spread options.

Function | Purpose |
---|---|

Price European spread options using the Kirk pricing model. | |

Calculate European spread option prices and sensitivities using the Kirk pricing model. | |

Price European spread options using the Bjerksund-Stensland pricing model. | |

Calculate European spread option prices and sensitivities using the Bjerksund-Stensland pricing model. | |

Price European or American spread options using the Alternate Direction Implicit (ADI) and Crank-Nicolson finite difference methods. | |

Calculate price and sensitivities of European or American spread options using the Alternate Direction Implicit (ADI) and Crank-Nicolson finite difference methods. | |

Price European or American spread options using Monte Carlo simulations. | |

Calculate price and sensitivities for European or American spread options using Monte Carlo simulations. |

For more information on using spread options, see Pricing European and American Spread Options.

### Lookback Option

A *lookback* option is a path-dependent option based on the
maximum or minimum value the underlying asset (e.g. electricity, stock) achieves
during the entire life of the option. Basically the holder of the option can ‘look
back’ over time to determine the payoff. This type of option provides price
protection over a selected period, reduces uncertainties with the timing of market
entry, moderates the need for the ongoing management, and therefore, is usually more
expensive than vanilla options.

Lookback call options give the holder the right to buy the underlying asset at the lowest price. Lookback put options give the right to sell the underlying asset at the highest price.

Financial Instruments Toolbox™ software supports two types of lookback options: fixed and floating. The difference is related to how the strike price is set in the contract. Fixed lookback options have a specified strike price and the option pays out the maximum of the difference between the highest (lowest) observed price of the underlying during the life of the option and the strike. Floating lookback options have a strike price determined at maturity, and it is set at the lowest (highest) price of the underlying reached during the life of the option. This means that for a floating strike lookback call (put), the holder has the right to buy (sell) the underlying asset at its lowest (highest) price observed during the life of the option. So, there are a total of four lookback option types, each with its own characteristic payoff formula:

Fixed call: $$\mathrm{max}(0,{S}_{\mathrm{max}}-X)$$

Fixed put: $$\mathrm{max}(0,X-{S}_{\mathrm{min}})$$

Floating call: $$\mathrm{max}(0,S-{S}_{\mathrm{min}})$$

Floating put: $$\mathrm{max}(0,{S}_{\mathrm{max}}-S)$$

where:

$${S}_{\mathrm{max}}$$ is the maximum price of underlying asset.

$${S}_{\mathrm{min}}$$ is the minimum price of underlying asset.

$$S$$ is the price of the underlying asset at maturity.

$$X$$ is the strike price.

The following functions support lookback options.

Function | Purpose |
---|---|

Calculate prices of European lookback fixed and floating strike options using the Conze-Viswanathan and Goldman-Sosin-Gatto models. | |

Calculate prices and sensitivities of European fixed and floating strike lookback options using the Conze-Viswanathan and Goldman-Sosin-Gatto models. | |

Calculate prices of lookback fixed and floating strike options using the Longstaff-Schwartz model. | |

Calculate prices and sensitivities of lookback fixed and floating strike options using the Longstaff-Schwartz model. | |

Price a lookback option from a Cox-Ross-Rubinstein binomial tree. | |

Price a lookback option from an Equal Probabilities binomial tree. | |

Price a lookback option using an implied trinomial tree (ITT). | |

Price a lookback option using a standard trinomial tree. |

Lookback options and Asian options are instruments used in the electricity market to manage purchase timing risk. Electricity purchasers cover part of their expected electricity consumption on the forward market to avoid the volatility and limited liquidity of the spot market. Using Asian options as a hedging tool is a passive approach to solving the purchase timing problem. An Asian option instrument diminishes the wrong timing risk but it also reduces any potential benefit to the buyer from falling prices. On the other hand, lookback options allow the purchasers to buy electricity at the lowest price, but as mentioned before, this instrument is more expensive than Asian and vanilla options.

### Forwards Option

A *forward option* is a non-standardized contract between two
parties to buy or to sell an asset at a specified future time at a price agreed upon
today. The buyer of a forward option contract has the right to hold a particular
forward position at a specific price any time before the option expires. The forward
option seller holds the opposite forward position when the buyer exercises the
option. A call option is the right to enter into a long forward position and a put
option is the right to enter into a short forward position. A closely related
contract is a futures contract. A forward is like a futures in that it specifies the
exchange of goods for a specified price at a specified future date. The following
table displays some of the characteristics of forward and futures contracts.

Forwards | Futures |
---|---|

Customized contracts | Standardized contracts |

Over the counter traded | Exchange traded |

Exposed to default risk | Clearing house reduces default risk |

Mostly used for hedging | Mostly used by hedgers and speculators |

Settlement at the end of contract (no Margin required) | Daily changes are settled day by day (Margin required) |

Delivery usually takes place | Delivery usually never happens |

The payoff for a forward option, where the value of a forward position at maturity
depends on the relationship between the delivery price (*K*) and
the underlying price
(*S** _{T}*) at that time, is:

For a long position: $${f}_{T}={S}_{T}-K$$

For a short position: $${f}_{T}=K-{S}_{T}$$

The following functions support pricing a forwards option.

Function | Purpose |
---|---|

Price options on forwards using the Black option pricing model. | |

Determine option prices and sensitivities on forwards using the Black pricing model. |

### Futures Option

A *future option* is a standardized contract between two
parties to buy or sell a specified asset of standardized quantity and quality for a
price agreed upon today (the futures price) with delivery and payment occurring at a
specified future date, the delivery date. The contracts are negotiated at a futures
exchange, which acts as an intermediary between the two parties. The party agreeing
to buy the underlying asset in the future, the "buyer" of the contract, is said to
be "long", and the party agreeing to sell the asset in the future, the "seller" of
the contract, is said to be "short."

Forwards | Futures |
---|---|

Customized contracts | Standardized contracts |

Over the counter traded | Exchange traded |

Exposed to default risk | Clearing house reduces default risk |

Mostly used for hedging | Mostly used by hedgers and speculators |

Settlement at the end of contract (no Margin required) | Daily changes are settled day by day (Margin required) |

Delivery usually takes place | Delivery usually never happens |

A futures contract is the delivery of item *J* at time
*T* and:

There exists in the market a quoted price $$F(t,T)$$, which is known as the futures price at time

*t*for delivery of*J*at time*T*.The price of entering a futures contract is equal to zero.

During any time interval [

*t*,*s*], the holder receives the amount $$F(s,T)-F(t,T)$$ (this reflects instantaneous marking to market).At time

*T*, the holder pays $$F(T,T)$$ and is entitled to receive*J*. Note that $$F(T,T)$$ should be the spot price of*J*at time*T*.

The following functions support pricing a futures option.

Function | Purpose |
---|---|

Price options on futures using the Black option pricing model. | |

Determine option prices and sensitivities on futures using the Black pricing model. |

## See Also

`spreadbyls`

| `spreadsensbyls`

| `asianbyls`

| `asiansensbyls`

| `lookbackbyls`

| `lookbacksensbyls`

| `optstockbyls`

| `optstocksensbyls`

| `optpricebysim`

| `spreadbykirk`

| `spreadsensbykirk`

| `spreadbybjs`

| `spreadsensbybjs`

| `asianbykv`

| `asiansensbykv`

| `asianbylevy`

| `asiansensbylevy`

| `lookbackbycvgsg`

| `lookbacksensbycvgsg`

| `optstockbyblk`

| `optstocksensbyblk`

| `spreadbyfd`

| `spreadsensbyfd`

## Related Examples

- Pricing European and American Spread Options
- Hedging Strategies Using Spread Options
- Pricing Swing Options Using the Longstaff-Schwartz Method
- Compute Option Prices on a Forward
- Compute Forward Option Prices and Delta Sensitivities
- Compute the Option Price on a Future
- Simulating Electricity Prices with Mean-Reversion and Jump-Diffusion
- Pricing Asian Options