BlackScholesDelta - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.
Our website is currently undergoing maintenance, which may result in occasional errors while browsing. We apologize for any inconvenience this may cause and are working swiftly to restore full functionality. Thank you for your patience.

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

withFinance:

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.

BlackScholesDelta100,100,1,σ,r,d,call

ⅇderfσ2+2d2r24σ12

(1)

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

BlackScholesDelta100,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.

BlackScholesDelta100,tmaxt100,0,1,σ,r,d

ⅇderfσ2+2d2r24σ12

(3)

BlackScholesDelta100,tmaxt100,0,1,0.3,0.05,0.03

0.5684539378

(4)

ΔBlackScholesDelta100,100,1,σ,r,0.03,call

Δ0.4852227668σ+0.4852227668erf0.02121320343+0.707106781r+0.3535533905σ2σσ+0.387151754ⅇ0.0000499999999750.σ2+100.r3.2σ20.3989422803ⅇ1.0.5000000002rσ2+0.00044999999980.02999999998r+0.01499999999σ2+0.4999999997r2+0.1249999999σ4σ2σ

(5)

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

Here are similar examples for the European put option.

BlackScholesDelta100,120,1,σ,r,d,put

ⅇderf2ln65+σ22d+2r24σ12

(6)

BlackScholesDelta100,120,1,0.3,0.05,0.03,put

−0.632854644

(7)

BlackScholesDelta100,tmax120t,0,1,σ,r,d

ⅇr2ln35σ2+drσ25σ2+2d2r2σ23σ22+ln5d+rσ2ⅇσ4+4dσ24rσ2+4ln32+4ln52+4ln22+4d28dr+4r28σ2+5erf2ln65+σ22d+2r24σⅇrdπσ5ⅇrdπσ6ⅇ2ln65σ22d+2r28σ2210πσ

(8)

BlackScholesDelta100,tmax120t,0,1,0.3,0.05,0.03,d

−0.6328546388

(9)

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

SBlackScholesDelta100&comma;tpiecewiset<50&comma;50t&comma;t<100&comma;0&comma;t100&comma;1&comma;σ&comma;r&comma;d

S&ExponentialE;r2erf2σ2+2ln22d+2r4σ&ExponentialE;rdπσ+2erfσ2+2d2r24σ&ExponentialE;rdπσ+&ExponentialE;σ2+2ln22d+2r28σ222σ2+drσ2&ExponentialE;σ4+4dσ24rσ2+4ln22+4d28dr+4r28σ24πσ

(10)

CBlackScholesDelta100&comma;100&comma;1&comma;σ&comma;r&comma;d&comma;call

C&ExponentialE;derfσ2+2d2r24σ12

(11)

PBlackScholesDelta100&comma;50&comma;1&comma;σ&comma;r&comma;d&comma;put

P&ExponentialE;derf2σ2+2ln22d+2r4σ12

(12)

Check:

simplifySCP

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]