Skip to content

Simulation of mean-reverting portfolio computed by daspremont2008 model

Welcome to our Knowledge Base

Simulation of mean-reverting portfolio computed by daspremont2008 model

You are here:
< last topic
  1. Open MultiPeriodKagiMRStrategyDemo.java
  2. The simulation parameters are defined in the class MRSimParamSP500.
  3. Open MRSimParamSP500.java
  4. MRSimParamSP500 defines the pool of stocks in which the mean-reverting baskets of stocks will be found. Also, it defines the number of baskets, the size of each basket, the time interval of the simulation, how frequent the basket is renewed, how far historical price data is used for computing the optimal clusters and baskets, etc.
  5. Run the simulation. Right-click “MultiPeriodKagiMRStrategyDemo.java” and select “Run File”.
  6. It starts by downloading the price data from Yahoo server to the hard drive.
  7. Then, it finds clusters of related stocks based on covariance selection (matrix optimization with penalty). Please see “com.numericalmethod.algoquant.model.daspremont2008.strategy.ClusterFinder” for details.
  8. Within the largest cluster(s), mean-reverting baskets are found (using SDP). Please see “com.numericalmethod.algoquant.model.daspremont2008.strategy.MRBasketFinder” for details.
  9. The mean-reverting baskets are traded with KAGI strategy. The output will show the simulation results. Please see “com.numericalmethod.algoquant.model.daspremont2008.strategy.KagiMRStrategy” for details.
  10. The computed baskets and their price series are saved as CSV files in the “log” folder for reference.

 

Besides, users can also choose other mean-reverting strategies in AlgoQuant to trade the mean-reverting baskets:

com.numericalmethod.algoquant.model.elliott2005

com.numericalmethod.algoquant.model.jurek2007

com.numericalmethod.algoquant.model.volarb

 

 

 

 

 

 

 

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.
Table of Contents