AmericanBSCall_Greeks#

Purpose#

Computes Delta, Gamma, Theta, Vega, and Rho for American call options using the Black, Scholes, and Merton method.

Format#

{ d, g, t, v, rh } = AmericanBSCall_Greeks(S0, K, r, div, tau, sigma)#
Parameters:
  • S0 (scalar) – current price.

  • K (Mx1 vector) – strike prices.

  • r (scalar) – risk free rate.

  • div (scalar) – continuous dividend yield.

  • tau (scalar) – elapsed time to exercise in annualized days of trading.

  • sigma (scalar) – volatility.

Returns:
  • d (Mx1 vector) – delta.

  • g (Mx1 vector) – gamma.

  • t (Mx1 vector) – theta.

  • v (Mx1 vector) – vega.

  • rh (Mx1 vector) – rho.

Global Input#

_fin_thetaType

scalar, if 1, one day look ahead, else, infinitesmal. Default = 0.

_fin_epsilon

scalar, finite difference stepsize. Default = 1e-8.

Examples#

S0 = 305;
K = 300;
r = .08;
sigma = .25;
tau = .33;
print AmericanBSCall_Greeks(S0, K, r, 0, tau, sigma);

produces:

 0.64458004
0.021386935
 -75.959642
  65.256275
  56.872008

Source#

finprocs.src