The following environment configuration setup would guarantee reproducibility of the obtained results.
- The latest release of the Ubuntu Linux distribution was used, i.e. Ubuntu 24.04 LTS. In fact, any Linux distribution should also be sufficient.
- Docker Engine installation (docker engine).
The linux bash script run.sh
is responsible for building the docker image specified in the Dockerfile and running the Jupyter application.
> ./run.sh
Then simply copy the produced token value from the terminal and open your web browser and navigate to http://localhost:8080.
Make sure to paste the token value to the corresponding authentication field to log in.
The payoff function of a European Put Option is the following.
The fourier transform corresponding to the put option is equivallent to the following expression.
Let's use the DOcplex Python library to write the mathematical model in Python.
All objects of the model belong to one model instance.
- The continuous variable z represents the dual variable corresponding to the probability measure in the primal problem.
- The continuous matrix variable y represents dual variable corresponding to the call prices in the primal problem.
We want to find the sub-replicating portfolio (interpretation of dual problem).
Under a number of assumptions listed in this paper here, the model-free lower bound of the basket call is obtained by solving the following optimization problem.
The dual problem is given as follows.
It is enough to check the constraints for each
not for all
where
The resulting linear program can be written as follows.
For the option strikes of the calls for each asset, the starting value is 100 and more calls are added with step size
The algorithm is dependent on the choice of the initial set of constraints
Assume that C3 is defined as follows.
Volatilities and weight vectors in the numerical tests.
Values | |||||||||
---|---|---|---|---|---|---|---|---|---|
3 | 1.0 | 1.6 | 2.0 | ||||||
0.3 | 0.35 | 0.35 | |||||||
4 | 0.3 | 0.3 | 1.8 | 1.2 | |||||
0.1 | 0.2 | 0.3 | 0.4 | ||||||
5 | 0.3 | 0.4 | 0.8 | 1.8 | 1.9 | ||||
0.2 | 0.2 | 0.2 | 0.2 | 0.2 | |||||
6 | 0.3 | 0.5 | 1.3 | 1.5 | 1.9 | 2.1 | |||
0.1 | 0.1 | 0.1 | 0.1 | 0.3 | 0.3 | ||||
8 | 0.1 | 0.2 | 1.5 | 1.6 | 1.7 | 1.8 | 1.9 | 2.0 | |
0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 | 0.3 |
The Heston Stochastic Volatility Model assumes that the price of an asset is described by the equations:
If
The parameters passed to the model can be found in the following table:
Parameters | Symbol | Values |
---|---|---|
Mean Reverison | 1 | |
Long Run Variance | 0.09 | |
Current Variance | v | 0.09 |
Correlation | -0.3 | |
Volatility | 1 | |
Maturity | T | 1 |
Interest Rate | r | 0 |
Strike Prices | K |
Paoyff functions of arithmetic
and geometric Asian Options
Simulating the stock price of Microsoft for the upcoming 250 trading days MC techniques were used to forecast the prices (100 trajectories were simulated):
Basic automated trading bot which implements strategies on real-time price data of the CRYPTO-market. The Relative Strength Index (RSI) measures the magintude of recent price changes to evaluate overbought or oversold conditions in the price of a stock: