|
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.EuropeanVega
Within this class we consider the evaluation of the Vega of a European option on equities, equity indexes, currencies and future contracts in accordance with the classical Black-Scholes model.
Recall that the Vega of an option contract is the rate of change (i.e. the first derivative) of the option with respect to changes in the volatility of the underlying asset.
| Constructor Summary | |
EuropeanVega()
Creates a new instance. |
|
| Method Summary | |
double |
optionVega(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method returns the Vega of a European call or put option on a non-dividend paying stock. |
double |
optionVega(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method returns the Vega of a European call or put option on a non-dividend paying stock. |
double |
optionVegaOnCurrency(double foreignRiskFree,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Evaluates the Vega of a European call or put option on a currency. |
double |
optionVegaOnCurrency(double foreignRiskFree,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Evaluates the Vega of a European call or put option on a currency. |
double |
optionVegaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Evaluates the Vega of a European call or put option on a futures contract. |
double |
optionVegaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Evaluates the Vega of a European call or put option on a futures contract. |
double |
optionVegaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Evaluates the Vega of a European call or put option on an index. |
double |
optionVegaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Evaluates the Vega of a European call or put option on an index. |
double |
optionVegaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method returns the Vega of a European call or put option on a stock which pays a continuous dividend. |
double |
optionVegaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method returns the Vega of a European call or put option on a stock which pays a continuous dividend. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EuropeanVega()
| Method Detail |
public double optionVega(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanVegaDemoException
stockPrice - the price of the underlying stockstrike - the strike of the option contractriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying assetevaluationDate - the date when the Vega of the option contract is evaluatedmaturityDate - the date when the option maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanVegaDemoException
public double optionVega(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanVegaDemoException
stockPrice - the price of the underlying stockstrike - the strike of the option contractriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying assettimeToMaturity - the time until the option contract expires
EuropeanVegaDemoException
public double optionVegaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanVegaDemoException
yield - the continuous yield of the underlying assetstockPrice - the price of the underlying stockstrike - the strike of the option contractriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying assetevaluationDate - the date when the Vega of the option contract is evaluatedmaturityDate - the date when the option maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanVegaDemoException
public double optionVegaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanVegaDemoException
yield - the continuous yield of the underlying assetstockPrice - the price of the underlying stockstrike - the strike of the option contractriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying assettimeToMaturity - the time until the option contract expires (in years)
EuropeanVegaDemoException
public double optionVegaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanVegaDemoException
yield - the average yield of the constituents of the indexindexValue - the value of the indexstrike - the value of the index as which the option settlesriskFreeRate - continuously compounded risk free interest ratevolatility - the volatility of the underlying assetevaluationDate - the date when the Vega of the option contract is evaluatedmaturityDate - the date when the option maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanVegaDemoException
public double optionVegaOnIndex(double yield,
double indexValue,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanVegaDemoException
yield - the average yield of the constituents of the indexindexValue - the value of the indexstrike - the value of the index as which the option settlesriskFreeRate - continuously compounded risk free interest ratevolatility - the volatility of the underlying assettimeToMaturity - the time until the option expires
EuropeanVegaDemoException
public double optionVegaOnCurrency(double foreignRiskFree,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanVegaDemoException
foreignRiskFree - 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 currencyvolatility - the volatility of the exchange rateevaluationDate - the date when the Vega of the option contract is evaluatedmaturityDate - the date when the option maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanVegaDemoException
public double optionVegaOnCurrency(double foreignRiskFree,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanVegaDemoException
foreignRiskFree - 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 currencyvolatility - the volatility of the exchange ratetimeToMaturity - the time until the option expires
EuropeanVegaDemoException
public double optionVegaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanVegaDemoException
futuresPrice - the futures price at time zerostrike - the value of the futures contract at which option can be exercisedriskFreeRate - the risk free interest ratevolatility - volatility of the futures contractevaluationDate - the date when the Vega of the option contract is evaluatedmaturityDate - the date when the option maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanVegaDemoException
public double optionVegaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanVegaDemoException
futuresPrice - the futures price at time zerostrike - the value of the futures contract at which option can be exercisedriskFreeRate - the risk free interest ratevolatility - volatility of the futures contracttimeToMaturity - the time to maturity of the option (in years)
EuropeanVegaDemoException
|
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 | |||||||||