|
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.EuropeanTheta
Within this class we consider the evaluation of the Theta of a European option on equities, equity indexes, currencies and future contracts in accordance with the classical Black-Scholes model.
Recall that the Theta of an option contract is the rate of change (i.e. the first derivative) of the option with respect to changes in the time to maturity. The Theta is often referred to as the time decay of an option (or portfolio).
| Constructor Summary | |
EuropeanTheta()
Creates a new instance. |
|
| Method Summary | |
double |
callTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the theta per year of a European call option on a non-dividend-paying stock. |
double |
callTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the theta per year of a European call option on a non-dividend-paying stock. |
double |
callThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European call option on a currency. |
double |
callThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European call option on a currency. |
double |
callThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European call option on a futures contract |
double |
callThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European call option on a futures contract |
double |
callThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European call option on an asset paying a continuous yield (for example an option on a index). |
double |
callThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European call option on an asset paying a continuous yield (for example an option on a index). |
double |
putTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
This method calculates the theta per year of a European put option on a non-dividend paying stock. |
double |
putTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
This method calculates the theta per year of a European put option on a non-dividend paying stock. |
double |
putThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European put option on a currency. |
double |
putThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European put option on a currency. |
double |
putThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European put option on a futures contract |
double |
putThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European put option on a futures contract |
double |
putThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
Returns the theta of a European put option on an asset paying a continuous yield (for example an option on a index). |
double |
putThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
Returns the theta of a European put option on an asset paying a continuous yield (for example an option on a index). |
double |
thetaFromGammaDelta(double delta,
double gamma,
double assetPrice,
double riskFreeRate,
double volatility,
double totalValue)
We derive the theta from the delta, gamma and some other market variables for a portfolio of derivative all defined on some underlying asset. |
double |
year2DayThetaConvert(double thetaPerYear)
Converts the theta expressed as per year into the equivalent per day reading. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public EuropeanTheta()
| Method Detail |
public double callTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
stockPrice - the value of the underlying stockstrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying stock priceevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double callTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
stockPrice - the value of the underlying stockstrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratetimeToMaturity - the length of time until the option expiresvolatility - the volatility of the underlying stock price
EuropeanThetaDemoException
public double putTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
stockPrice - the value of the underlying stockstrike - the strike of the put optionriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying stock priceevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double putTheta(double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
stockPrice - the value of the underlying stockstrike - the strike of the put optionriskFreeRate - the continuously compounded risk free interest ratetimeToMaturity - the length of time until the option expiresvolatility - the volatility of the underlying stock price
EuropeanThetaDemoException
public double year2DayThetaConvert(double thetaPerYear)
throws EuropeanThetaDemoException
thetaPerYear - this is the theta per year of an asset
EuropeanThetaDemoException
public double callThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
yield - the continuous yield of the underlying assetstockPrice - the value of the underlying stock pricestrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying stock priceevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double callThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
yield - the continuous yield of the underlying assetstockPrice - the value of the underlying stock pricestrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying stock pricetimeToMaturity - the length of time until the option expires
EuropeanThetaDemoException
public double putThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
yield - the continuous yield of the underlying assetstockPrice - the value of the underlying stock pricestrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratevolatility - the volatility of the underlying stock priceevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double putThetaWithYield(double yield,
double stockPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
yield - the continuous yield of the underlying assetstockPrice - the value of the underlying stock pricestrike - the strike of the call optionriskFreeRate - the continuously compounded risk free interest ratetimeToMaturity - the length of time until the option expiresvolatility - the volatility of the underlying stock price
EuropeanThetaDemoException
public double callThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
interest - the continuously compounded risk free interest rate on the foreign currencyexchangeRate - the exchange ratestrike - the exchange rate at which the currency option is exercised atriskFreeRate - the continuously compounded risk free interest rate in the base currencyvolatility - the volatility of the exchange rateevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double callThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
interest - the continuously compounded risk free interest rate on the foreign currencyexchangeRate - the exchange ratestrike - the exchange rate at which the currency option is exercised atriskFreeRate - the continuously compounded risk free interest rate in the base currencytimeToMaturity - the time until the option expiresvolatility - the volatility of the exchange rate
EuropeanThetaDemoException
public double putThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
interest - the continuously compounded risk free interest rate on the foreign currencyexchangeRate - the exchange ratestrike - the exchange rate at which the currency option is exercised atriskFreeRate - the continuously compounded risk free interest rate in the base currencyvolatility - the volatility of the exchange rateevaluationDate - the date when the theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double putThetaOnCurrency(double interest,
double exchangeRate,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
interest - the continuously compounded risk free interest rate on the foreign currencyexchangeRate - the exchange ratestrike - the exchange rate at which the currency option is exercised atriskFreeRate - the continuously compounded risk free interest rate in the base currencytimeToMaturity - the time until the option expiresvolatility - the volatility of the exchange rate
EuropeanThetaDemoException
public double callThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
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 theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double callThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
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)
EuropeanThetaDemoException
public double putThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
Date evaluationDate,
Date maturityDate,
BusinessCalendar businessCalendar)
throws EuropeanThetaDemoException
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 theta of the option contract is evaluatedmaturityDate - the date when the option contract maturesbusinessCalendar - The instance of a BusinessCalendar interface implementation. Specify null to select the London business calendar.
EuropeanThetaDemoException
public double putThetaOnFutures(double futuresPrice,
double strike,
double riskFreeRate,
double volatility,
double timeToMaturity)
throws EuropeanThetaDemoException
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)
EuropeanThetaDemoException
public double thetaFromGammaDelta(double delta,
double gamma,
double assetPrice,
double riskFreeRate,
double volatility,
double totalValue)
throws EuropeanThetaDemoException
delta - the delta with respect to the underlying asset of the portfoliogamma - the gamma with respect to the underlying asset of the portfolioassetPrice - the underlying assets pricevolatility - the volatility of the underlying assets priceriskFreeRate - the continuously compounded risk free interest ratetotalValue - the value of the whole portfolio
EuropeanThetaDemoException
|
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 | |||||||||