Options
All
  • Public
  • Public/Protected
  • All
Menu

Black 1976 calculator class

bug

When the variance is null, division by zero occur during the calculation of delta, delta forward, gamma, gamma forward, rho, dividend rho, vega, and strike sensitivity.

Hierarchy

Index

Properties

_DalphaDd1

_DalphaDd1: Real

_DbetaDd2

_DbetaDd2: Real

_DxDs

_DxDs: Real

_DxDstrike

_DxDstrike: Real

_alpha

_alpha: Real

_beta

_beta: Real

_cum_d1

_cum_d1: Real

_cum_d2

_cum_d2: Real

_d1

_d1: Real

_d2

_d2: Real

_discount

_discount: Real

_forward

_forward: Real

_n_d1

_n_d1: Real

_n_d2

_n_d2: Real

_stdDev

_stdDev: Real

_strike

_strike: Real

_variance

_variance: Real

_x

_x: Real

Methods

alpha

  • Returns Real

beta

  • Returns Real

delta

  • Sensitivity to change in the underlying spot price.

    Parameters

    Returns Real

deltaForward

  • deltaForward(): Real
  • Sensitivity to change in the underlying forward price.

    Returns Real

dividendRho

  • Sensitivity to dividend/growth rate.

    Parameters

    Returns Real

elasticity

  • Sensitivity in percent to a percent change in the underlying spot price.

    Parameters

    Returns Real

elasticityForward

  • elasticityForward(): Real
  • Sensitivity in percent to a percent change in the underlying forward price.

    Returns Real

gamma

  • Second order derivative with respect to change in the underlying spot price.

    Parameters

    Returns Real

gammaForward

  • gammaForward(): Real
  • Second order derivative with respect to change in the underlying forward price.

    Returns Real

init1

init2

  • Parameters

    Returns BlackCalculator

Protected initialize

  • Parameters

    Returns void

itmAssetProbability

  • itmAssetProbability(): Real
  • Probability of being in the money in the asset martingale measure, i.e. N(d1). It is a risk-neutral probability, not the real world one.

    Returns Real

itmCashProbability

  • itmCashProbability(): Real
  • Probability of being in the money in the bond martingale measure, i.e. N(d2). It is a risk-neutral probability, not the real world one.

    Returns Real

rho

  • Sensitivity to discounting rate.

    Parameters

    Returns Real

strikeSensitivity

  • strikeSensitivity(): Real
  • Sensitivity to strike.

    Returns Real

theta

  • Sensitivity to time to maturity.

    Parameters

    Returns Real

thetaPerDay

  • Sensitivity to time to maturity per day, assuming 365 day per year.

    Parameters

    Returns Real

value

  • Returns Real

vega

  • Sensitivity to volatility.

    Parameters

    Returns Real