BlackDash (Black-Scholes Dashboard) is a simple dynamic web app that provides the user an easy-to-use interface to calculate option prices for stocks in particular indices and provide relevant analyses.
This project is still a work in progress, there are several other features to be included as well as enhancing current functionalities.
The stocks will be provided from the following indices:
- Dow Jones
- FTSE 100
- NIKKEI 225
- CAC 40
- DAX
- Strait Times Index
- Hang Seng Index
- Swiss Market Index
- Korea Composite Stock Price Index
There are 4 period intervals to pick from:
- Years
- Months
- Days
- Hours
The duration can be chosen which will in turn amend the graph to represent the stock price variations in that period.
The stock price is displayed under the Prices
header along with its associated currency. The strike price can be configured any value for your option.
Calendar
days assumes 365 days in a year in the calculation of the option price, while Trading
days assumes 252 days. There is currently ongoing work for a more sophisticated approach to dates by utilising the ISDA standard, and potentially others.
An option where you may only be exercised at the maturity date is known as a European Option.
A European call option has value*:
where
The price for a put options is:
* The the stock price
American options slightly differ to European options with the fact that the contract can be exercised at any point before the maturity date (as opposed to European options where one can only exercise at the maturity date).
This extra flexibility would make American options a little more valuable than it European counterpart, however, it is not straightforward to calculate its price. We often resort to numerical approximation schemes such as finite difference to price American options. In BlackDash, a variation of the Monte-Carlo method known as Longstaff-Schwartz has been implemented.
The calculation for the Option Price
has been provided in the previous section for European and American options.
The Annual Return
is calculated as follows:
where
The Greeks are sensitivities of the option price with respect to certain parameters. They are defined as the following
-
$\frac{\text{d}V}{\text{d}t} = \theta$ -
$\frac{\text{d}V}{\text{d}S} = \Delta$ -
$\frac{\text{d}^2V}{\text{d}S^2} = \Gamma$ -
$\frac{\text{d}V}{\text{d}\sigma} = \nu$ -
$\frac{\text{d}V}{\text{d}r} = \rho$
Example: for
The volatility
BlackDash calculates three types of volatilities:
-
Daily Volatility: The average fluctutation from the mean price in
$N$ days, calculated as:
$$ \sum^{N - 1}{i=0} \frac{\left(\ln\left(S_i / S{i+1}\right) - \frac{\ln\left(S_N / S_0\right)}{\text{N} - 1}\right)^2}{N - 2} $$
-
Annual Volatility: This is the same as the above but with fixed value
$N=365$ -
Implied Volatility: The implied volatility for a given option price - this is still a work in progress. Calculating the implied volatility requires solving an implicit function numerically. At the moment, the Brent-Dekker method has been implemented and will be enhanced in the future.
This section will be removed in the next iteration.