BlackScholesDelta - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.

Online Help

All Products    Maple    MapleSim


Finance

  

BlackScholesDelta

  

compute the Delta of a European-style option with given payoff

 

Calling Sequence

Parameters

Description

Examples

References

Compatibility

Calling Sequence

BlackScholesDelta(S0, K, T, sigma, r, d, optiontype)

BlackScholesDelta(S0, P, T, sigma, r, d)

Parameters

S0

-

algebraic expression; initial (current) value of the underlying asset

K

-

algebraic expression; strike price

T

-

algebraic expression; time to maturity

sigma

-

algebraic expression; volatility

r

-

algebraic expression; continuously compounded risk-free rate

d

-

algebraic expression; continuously compounded dividend yield

P

-

operator or procedure; payoff function

optiontype

-

call or put; option type

Description

• 

The Delta of an option or a portfolio of options is the sensitivity of the option or portfolio to changes in the value of the underlying asset

Δ=ⅆSⅆS0

• 

The BlackScholesDelta command computes the Delta of a European-style option with the specified payoff function.

• 

The parameter S0 is the initial (current) value of the underlying asset. The parameter T is the time to maturity in years.

• 

The parameter K specifies the strike price if this is a vanilla put or call option. Any payoff function can be specified using the second calling sequence. In this case the parameter P must be given in the form of an operator, which accepts one parameter (spot price at maturity) and returns the corresponding payoff.

• 

The sigma, r, and d parameters are the volatility, the risk-free rate, and the dividend yield of the underlying asset. These parameters can be given in either the algebraic form or the operator form. The parameter d is optional. By default, the dividend yield is taken to be 0.

Examples

> 

with⁡Finance:

First compute the Delta of a European call option with strike price 100, which matures in 1 year. This will define the Delta as a function of the risk-free rate, the dividend yield, and the volatility.

> 

BlackScholesDelta⁡100,100,1,σ,r,d,call

−ⅇ−d⁢erf⁡−σ2+2⁢d−2⁢r⁢24⁢σ−12

(1)

In this example you will use numeric values for the risk-free rate, the dividend yield, and the volatility.

> 

BlackScholesDelta⁡100,100,1,0.3,0.05,0.03,call

0.568453937

(2)

You can also use the generic method in which the option is defined through its payoff function.

> 

BlackScholesDelta⁡100,t↦max⁡t−100,0,1,σ,r,d

−ⅇ−d⁢erf⁡−σ2+2⁢d−2⁢r⁢24⁢σ−12

(3)
> 

BlackScholesDelta⁡100,t↦max⁡t−100,0,1,0.3,0.05,0.03

0.5684539378

(4)
> 

Δ≔BlackScholesDelta⁡100,100,1,σ,r,0.03,call

Δ≔0.4852227668+0.4852227668⁢erf⁡−0.02121320343+0.707106781⁢r+0.3535533905⁢σ2σ+0.3871517540⁢ⅇ−1.⁢0.0004499999997−0.02999999998⁢r−0.01499999999⁢σ2+0.4999999997⁢r2+0.4999999997⁢r⁢σ2+0.1249999999⁢σ4σ2σ−0.3989422803⁢ⅇ−1.⁢0.5000000002⁢r⁢σ2+0.0004499999998−0.02999999998⁢r+0.01499999999⁢σ2+0.4999999997⁢r2+0.1249999999⁢σ4σ2σ

(5)
> 

plot3d⁡Δ,σ=0..1,r=0..1,axes=BOXED

Here are similar examples for the European put option.

> 

BlackScholesDelta⁡100,120,1,σ,r,d,put

−ⅇ−d⁢1+erf⁡2⁢ln⁡65−σ2+2⁢d−2⁢r⁢24⁢σ2

(6)
> 

BlackScholesDelta⁡100,120,1,0.3,0.05,0.03,put

−0.632854644

(7)
> 

BlackScholesDelta⁡100,t↦max⁡120−t,0,1,σ,r,d

−ⅇ−d⁢1+erf⁡2⁢ln⁡65−σ2+2⁢d−2⁢r⁢24⁢σ2

(8)
> 

BlackScholesDelta⁡100,t↦max⁡120−t,0,1,0.3,0.05,0.03,d

−0.6328546388

(9)

In this example, you will compute the Delta of a strangle.

> 

S≔BlackScholesDelta⁡100&comma;t↦piecewise⁡t<50&comma;50−t&comma;t<100&comma;0&comma;t−100&comma;1&comma;σ&comma;r&comma;d

S≔&ExponentialE;−d⁢erf⁡2⁢σ2+2⁢ln⁡2−2⁢d+2⁢r4⁢σ−erf⁡−σ2+2⁢d−2⁢r⁢24⁢σ2

(10)
> 

C≔BlackScholesDelta⁡100&comma;100&comma;1&comma;σ&comma;r&comma;d&comma;call

C≔−&ExponentialE;−d⁢erf⁡−σ2+2⁢d−2⁢r⁢24⁢σ−12

(11)
> 

P≔BlackScholesDelta⁡100&comma;50&comma;1&comma;σ&comma;r&comma;d&comma;put

P≔&ExponentialE;−d⁢−1+erf⁡2⁢σ2+2⁢ln⁡2−2⁢d+2⁢r4⁢σ2

(12)

Check:

> 

simplify⁡S−C−P

0

(13)

References

  

Hull, J., Options, Futures, and Other Derivatives, 5th. edition. Upper Saddle River, New Jersey: Prentice Hall, 2003.

Compatibility

• 

The Finance[BlackScholesDelta] command was introduced in Maple 15.

• 

For more information on Maple 15 changes, see Updates in Maple 15.

See Also

Finance[AmericanOption]

Finance[BermudanOption]

Finance[BlackScholesGamma]

Finance[BlackScholesPrice]

Finance[BlackScholesPrice]

Finance[BlackScholesRho]

Finance[BlackScholesTheta]

Finance[BlackScholesVega]

Finance[EuropeanOption]

Finance[ImpliedVolatility]

Finance[LatticePrice]