Skip to main content

Optimization of Trading Rules for the Spanish Stock Market by Genetic Programming

  • Conference paper
  • First Online:
Current Approaches in Applied Artificial Intelligence (IEA/AIE 2015)

Abstract

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Bodas-Sagi, D.J., et al.: A parallel evolutionary algorithm for technical market indicators optimization. Nat. Comp. (2012)

    Google Scholar 

  2. Brabazon, A., et al.: An Introduction to Evolutionary Computation in Finance. IEEE Computational Intelligence Magazine 3, 42–55 (2008)

    Article  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 

  9. Montana, D.J.: Strongly Typed Genetic Programming. Evo. Comp. 3(2), 199–230 (1995)

    Article  Google Scholar 

  10. Potvina, J.-Y., Sorianoa, P., Vallee, M.: Generating trading rules on the stock markets with genetic programming. Comp. & Oper. Res. 31, 1033–1047 (2004)

    Article  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

  12. Summers, B., et al.: Back to the future: an empirical investigation into the validity of stock index models over time. Appl. Fina. Econ. 14, 209–214 (2004)

    Article  Google Scholar 

  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 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Bonifacio Castaño .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2015 Springer International Publishing Switzerland

About this paper

Cite this paper

Luengo, S., Winkler, S., Barrero, D.F., Castaño, B. (2015). Optimization of Trading Rules for the Spanish Stock Market by Genetic Programming. In: Ali, M., Kwon, Y., Lee, CH., Kim, J., Kim, Y. (eds) Current Approaches in Applied Artificial Intelligence. IEA/AIE 2015. Lecture Notes in Computer Science(), vol 9101. Springer, Cham. https://doi.org/10.1007/978-3-319-19066-2_60

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-19066-2_60

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-19065-5

  • Online ISBN: 978-3-319-19066-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics