|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--webcab.lib.finance.options.EuropeanDelta
Within this class we consider the evaluation of the Delta of European options on equities, equity indexes, currencies and futures contracts in accordance with the classical Black-Scholes model.
Recall that the Delta of an option contract is the rate of change (i.e. the 1st derivative) of the option price with respect to changes of the underlying asset price.
| Constructor Summary | |
EuropeanDelta()
Creates a new instance. |
|
| Method Summary | |
double |
callDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the delta of a European call option on a non-dividend paying equity investment. |
double |
callDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the delta of a European call option on a non-dividend paying equity investment. |
double |
callDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the delta of a European call option on a currency. |
double |
callDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the delta of a European call option on a currency. |
double |
callDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the delta of a European call option on a (stock) futures contract. |
double |
callDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the delta of a European call option on a (stock) futures contract. |
double |
callDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Evaluates the Delta of a European call option on an index. |
double |
callDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Evaluates the Delta of a European call option on an index. |
double |
callDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the delta of a European call option on an asset which has a continuous yield. |
double |
callDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the delta of a European call option on an asset which has a continuous yield. |
double |
deltaOfPortfolio(double[] numberOfOptions,
double[] deltaOfOptions)
Evaluates the Delta of a portfolio of options is calculated when the number of each option held within the portfolio and the delta of each option is known. |
double |
putDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the delta of a European put option on a non-dividend paying stock. |
double |
putDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the delta of a European put option on a non-dividend paying stock. |
double |
putDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the delta of a European put option on a currency. |
double |
putDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the delta of a European put option on a currency. |
double |
putDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the delta of a European put option on a (stock) futures contract. |
double |
putDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the delta of a European put option on a (stock) futures contract. |
double |
putDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
The delta of a European put option on an index. |
double |
putDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
The delta of a European put option on an index. |
double |
putDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the delta of a European put option on an asset which has a continuous yield. |
double |
putDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the delta of a European put option on an asset which has a continuous yield. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EuropeanDelta()
| Method Detail |
public double callDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
volatility - volatility of the underlying assetstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)evaluationDate - the date when the delta of the European call option is evaluatedmaturityDate - the maturity date of the call optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double callDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
volatility - volatility of the underlying assettimeToMaturity - the time (in years) until the option maturesstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)
EuropeanDeltaDemoException
public double putDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
stockPrice - the stock price at the point of evaluationvolatility - volatility of the underlying assetstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)evaluationDate - the date when the delta of the European put option is evaluatedmaturityDate - the maturity date of the put optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double putDelta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
stockPrice - the stock price at the point of evaluationvolatility - volatility of the underlying assettimeToMaturity - time to the maturity of the option (in years)strike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)
EuropeanDeltaDemoException
public double callDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
assetPrice - the stock (index or currency) price at the point of evaluationvolatility - volatility of the underlying assetstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)yield - the continuous yield of the underlying asset during the life of the option contractevaluationDate - the date when the delta of the European call option is evaluatedmaturityDate - the maturity date of the call optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double callDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
assetPrice - the stock (index or currency) price at the point of evaluationvolatility - volatility of the underlying assettimeToMaturity - time to the maturity of the option (in years)strike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)yield - the continuous yield of the underlying asset during the life of the option contract
EuropeanDeltaDemoException
public double putDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
assetPrice - the stock (index or currency) price at the point of evaluationvolatility - volatility of the underlying assetstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)yield - the continuous yield of the underlying asset during the life of the option contractevaluationDate - the date when the delta of the European put option is evaluatedmaturityDate - the maturity date of the put optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double putDeltaWithYield(double yield,
double assetPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
assetPrice - the stock (index or currency) price at the point of evaluationvolatility - volatility of the underlying assettimeToMaturity - time (in years) until the option maturesstrike - the strike of the European call optionriskFreeRate - the continuously compounded risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)yield - the continuous yield of the underlying asset during the life of the option contract
EuropeanDeltaDemoException
public double deltaOfPortfolio(double[] numberOfOptions,
double[] deltaOfOptions)
throws OptionsException,
EuropeanDeltaDemoException
numberOfOptions - this is an array for which numberOfOptions[i], corresponds to the number of the i+1th option within the portfoliodeltaOfOptions - this is an array for which deltaOfOptions[i], corresponds to the delta of the i+1th option
OptionsException
EuropeanDeltaDemoException
public double callDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
yield - the continuous yield of the indexindexValue - the value of the indexstrike - the value of the index at which the option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the indexevaluationDate - the date when the delta of the European call option is evaluatedmaturityDate - the maturity date of the call optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double callDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
yield - the continuous yield of the indexindexValue - the value of the indexstrike - the value of the index at which the option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the indextimeToMaturity - the time (in years) until the option matures
EuropeanDeltaDemoException
public double putDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
yield - the continuous yield of the indexindexValue - the value of the indexstrike - the strike of the option contract. Here the strike represents the price at which the underlying index can be purchasedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the indexevaluationDate - the date when the delta of the European put option is evaluatedmaturityDate - the maturity date of the put optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double putDeltaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
yield - the continuous yield of the indexindexValue - the value of the indexstrike - the strike of the option contract. Here the strike represents the price at which the underlying index can be purchasedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the indextimeToMaturity - the time (in years) until the maturity of the option contract
EuropeanDeltaDemoException
public double callDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
foreignRate - the continuously compounded risk free interest rate in the foreign currencyexchangeRate - the present exchange ratestrike - the exchange rate at which the option can be exercisedriskFreeRate - the risk free interest rate in the base currency expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the exchange rateevaluationDate - the date when the delta of the European call option is evaluatedmaturityDate - the maturity date of the call optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double callDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
foreignRate - the continuously compounded risk free interest rate in the foreign currencyexchangeRate - the present exchange ratestrike - the exchange rate at which the option can be exercisedriskFreeRate - the risk free interest rate in the base currency expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the exchange ratetimeToMaturity - the time (in years) until the option matures
EuropeanDeltaDemoException
public double putDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
foreignRate - the continuously compounded risk free interest rate in the foreign currencyexchangeRate - the present exchange ratestrike - the exchange rate at which the option can be exercisedriskFreeRate - the risk free interest rate in the base currency expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the exchange rateevaluationDate - the date when the delta of the European put option is evaluatedmaturityDate - the maturity date of the put optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double putDeltaOnCurrency(double foreignRate,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
foreignRate - the continuously compounded risk free interest rate in the foreign currencyexchangeRate - the present exchange ratestrike - the exchange rate at which the option can be exercisedriskFreeRate - the risk free interest rate in the base currency expressed in decimal format (i.e. 1 percent = 0.01)volatility - the volatility of the exchange ratetimeToMaturity - the time (in years) until the option matures
EuropeanDeltaDemoException
public double callDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
futuresPrice - the futures price at time zerostrike - the strike of the options contract. Here the strike is the price at which the futures contract underlying the options contrct can be purchased on the option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - volatility of the futures contractevaluationDate - the date when the delta of the European call option is evaluatedmaturityDate - the maturity date of the call optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double callDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
futuresPrice - the futures price at time zerostrike - the strike of the options contract. Here the strike is the price at which the futures contract underlying the options contrct can be purchased on the option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - volatility of the futures contracttimeToMaturity - in time (in years) until the option matures
EuropeanDeltaDemoException
public double putDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanDeltaDemoException
strike - the value of the futures contract at which option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - volatility of the futures contractevaluationDate - the date when the delta of the European put option is evaluatedmaturityDate - the maturity date of the put optionbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanDeltaDemoException
public double putDeltaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanDeltaDemoException
strike - the value of the futures contract at which option can be exercisedriskFreeRate - the risk free interest rate expressed in decimal format (i.e. 1 percent = 0.01)volatility - volatility of the futures contracttimeToMaturity - time to maturity of the option (in years)
EuropeanDeltaDemoException
|
WebCab Options and Futures Demo v2.5 (J2SE Edition) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||