Optimization of Trading Rules for the Spanish Stock Market by Genetic Programming
This paper deals with the development of a method for generating input and output signals in the Spanish stock market. It is based on the application of set of simple trading rules optimized by genetic programming. To this aim we use the HeuristicLab software. To evaluate the performance of our method we make a comparison with other traditional methods such as Buy & Hold and Simple Moving Averages Crossover. We study three different market scenarios: bull market, bear market and sideways market. Empirical test series show that market global behavior has a great influence on the results of each method and that strategies based on genetic programming perform best in the sideways market.
KeywordsStock exchange markets Genetic programming Optimization Trading rules Market tendencies
Unable to display preview. Download preview PDF.
- 1.Bodas-Sagi, D.J., et al.: A parallel evolutionary algorithm for technical market indicators optimization. Nat. Comp. (2012)Google Scholar
- 3.Goldberg, D.E., Kalyanmoy, D.: A Comparative Analysis of Selection Schemes Used in Genetic Algorithms. Foundations of Genetic Algorithms, pp. 69–93 (1991)Google Scholar
- 4.Kaboudan, M.: GP forecasts of stock prices for profitable trading. In: Evolutionary Computation in Economics and Finance, Heidelberg, pp 359–382 (2002)Google Scholar
- 5.Kirkpatrick, C.D., Dahlquist, J.: Technical Analysis: The Complete Resource for Financial Market Technicians. Financial Times Press (2006)Google Scholar
- 6.Koza, J.R.: Genetic Programming: On the Programming of Computers by Means of Natural Selection. The MIT press (1992)Google Scholar
- 7.Majeed, H., Ryan, C.: Using context-aware crossover to improve the performance of GP permission and/or a fee. In: Proc. GECCO 2006, pp. 847–854 (2006)Google Scholar
- 8.Mallick, D., Lee, V.C., Ong, Y.S.: An empirical study of genetic programming generated trading rules in computerized stock trading service system. In: Procc. Int. Conf. on Serv. Syst. and Serv. Man., pp. 1–6 (2008)Google Scholar
- 11.Ryan, J.A., et al.: Package quantmod: Quantitative Financial Modeling Framework (2015). http://cran.r-project.org/web/packages/quantmod/quantmod.pdf
- 13.Wagner, S., et al.: Architecture and design of the HeuristicLab optimization environment. In: Advanced Methods and Applications in Computational Intelligence. Topics in Intelligent Engineering and Informatics, pp. 197–261. Springer (2014)Google Scholar