Skip to main content

Combining Technical Analysis and Grammatical Evolution in a Trading System

  • Conference paper

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 7835))

Abstract

Trading Systems are beneficial for financial investments due to the complexity of nowadays markets. On one hand, finance markets are influenced by a great amount of factors of different sources such as government policies, natural disasters, international trade, political factors etc. On the other hand, traders, brokers or practitioners in general could be affected by human emotions, so their behaviour in the stock market becomes nonobjective. The high pressure induced by handling a large volume of money is the main reason of the so-called market psychology. Trading systems are able to avoid a great amount of these factors, allowing investors to abstract the complex flow of information and the emotions related to the investments. In this paper we compare two trading systems based on Evolutionary Computation. The first is a GA-based one and was already proposed and tested with data from 2006. The second one is a grammatical evolution approach which uses a new evaluation method. Experimental results show that the later outperforms the GA approach with a set of selected companies of the spanish market with 2012 data.

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

Buying options

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

Learn about institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Adamu, K., Phelps, S.: Modelling financial time series using grammatical evolution. In: Proceedings of the Workshop on Advances in Machine Learning for Computational Finance, London, UK (2009)

    Google Scholar 

  2. Adamu, K., Phelps, S.: Coevolution of technical trading rules for high frequency trading. In: Proceedings of the World Congress on Engineering, pp. 96–101 (2010)

    Google Scholar 

  3. Allen, F., Karjalainen, R.: Using genetic algorithms to find technical trading rules. Journal of Financial Economics 51(2), 245–271 (1999)

    Article  Google Scholar 

  4. Bodas-Sagi, D., Soltero, F., Hidalgo, J., Fernández, P., Fernandez, F.: A technique for the optimization of the parameters of technical indicators with multi-objective evolutionary algorithms. In: IEEE Congress on Evolutionary Computation, pp. 1–8 (2012)

    Google Scholar 

  5. Brabazon, A., O’Neill, M.: Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution. Computational Management Science 1(3), 311–327 (2004)

    Article  MATH  Google Scholar 

  6. Colby, R.W., Meyers, T.A.: The encyclopedia of technical market indicators. Irwin, New York (1988)

    Google Scholar 

  7. Contreras, I., Hidalgo, J.I., Núñez-Letamendia, L.: A GA Combining Technical and Fundamental Analysis for Trading the Stock Market. In: Di Chio, C., Agapitos, A., Cagnoni, S., Cotta, C., de Vega, F.F., Di Caro, G.A., Drechsler, R., Ekárt, A., Esparcia-Alcázar, A.I., Farooq, M., Langdon, W.B., Merelo-Guervós, J.J., Preuss, M., Richter, H., Silva, S., Simões, A., Squillero, G., Tarantino, E., Tettamanzi, A.G.B., Togelius, J., Urquhart, N., Uyar, A.Ş., Yannakakis, G.N. (eds.) EvoApplications 2012. LNCS, vol. 7248, pp. 174–183. Springer, Heidelberg (2012)

    Chapter  Google Scholar 

  8. Contreras, I., Jiang, Y., Hidalgo, J., Núñez-Letamendia, L.: Using a gpu-cpu architecture to speed up a ga-based real-time system for trading the stock market. In: Soft Computing - A Fusion of Foundations, Methodologies and Applications, pp. 1–13 (2011)

    Google Scholar 

  9. Contreras, I., Jiang, Y., Hidalgo, J.I., Núñez-Letamendia, L.: Using a gpu-cpu architecture to speed up a ga-based real-time system for trading the stock market. Soft Comput. 16(2), 203–215 (2012)

    Article  Google Scholar 

  10. Dempsey, I., O’Neill, M., Brabazon, A.: Grammatical Constant Creation. In: Deb, K., Tari, Z. (eds.) GECCO 2004. LNCS, vol. 3103, pp. 447–458. Springer, Heidelberg (2004)

    Chapter  Google Scholar 

  11. Dempsey, I., O’Neill, M., Brabazon, A.: Adaptive trading with grammatical evolution. In: Proceedings of the 2006 IEEE Congress on Evolutionary Computation, July 6-21, pp. 9137–9142. IEEE Press, Vancouver (2006)

    Google Scholar 

  12. https://orbis-bvdinfocom.ezxy.ie.edu.Orbis

  13. Hugosson, J., Hemberg, E., Brabazon, A., O’Neill, M.: Genotype representations in grammatical evolution. Appl. Soft Comput. 10(1), 36–43 (2010)

    Article  Google Scholar 

  14. Jiang, Y., Núñez, L.: Efficient market hypothesis or adaptive market hypothesis? a test with the combination of technical and fundamental analysis. In: Proceedings of the 15th International Conference. Computing in Economics and Finance, University of Technology, Sydney, Australia (July 2009)

    Google Scholar 

  15. Lohpetch, D., Corne, D.: Discovering effective technical trading rules with genetic programming: Towards robustly outperforming buy-and-hold. In: NaBIC, pp. 439–444. IEEE (2009)

    Google Scholar 

  16. Lohpetch, D., Corne, D.: Multiobjective algorithms for financial trading: Multiobjective out-trades single-objective. In: IEEE Congress on Evolutionary Computation, pp. 192–199. IEEE (2011)

    Google Scholar 

  17. Núñez, L.: Trading systems designed by genetic algorithms. Managerial Finance 28, 87–106 (2002)

    Article  Google Scholar 

  18. O’Neill, M., Ryan, C.: Grammatical Evolution: Evolutionary Automatic Programming in an Arbitrary Language. Kluwer Academic Publishers (2003)

    Google Scholar 

  19. Ryan, C., Collins, J.J., Neill, M.O.: Grammatical Evolution: Evolving Programs for an Arbitrary Language. In: Banzhaf, W., Poli, R., Schoenauer, M., Fogarty, T.C. (eds.) EuroGP 1998. LNCS, vol. 1391, p. 83. Springer, Heidelberg (1998)

    Chapter  Google Scholar 

  20. Saks, P., Maringer, D.: Evolutionary Money Management. In: Giacobini, M., Brabazon, A., Cagnoni, S., Di Caro, G.A., Ekárt, A., Esparcia-Alcázar, A.I., Farooq, M., Fink, A., Machado, P. (eds.) EvoWorkshops 2009. LNCS, vol. 5484, pp. 162–171. Springer, Heidelberg (2009)

    Chapter  Google Scholar 

  21. Díaz-Giménez, J., Dolado, J.J., Bentolila, S., Boldrin, M.: La crisis de la economía española. Análisis económico de la gran recesíon. Monografias fedea (2012)

    Google Scholar 

  22. Soltero, F.J., Bodas-Sagi, D.J., Fernández-Blanco, P., Hidalgo, J.I., de Vega, F.F.: Optimization of technical indicators in real time with multiobjective evolutionary algorithms. In: Soule, T., Moore, J.H. (eds.) GECCO (Companion), pp. 1535–1536. ACM (2012)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Contreras, I., Hidalgo, J.I., Núñez-Letamendia, L. (2013). Combining Technical Analysis and Grammatical Evolution in a Trading System. In: Esparcia-Alcázar, A.I. (eds) Applications of Evolutionary Computation. EvoApplications 2013. Lecture Notes in Computer Science, vol 7835. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-37192-9_25

Download citation

  • DOI: https://doi.org/10.1007/978-3-642-37192-9_25

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-642-37191-2

  • Online ISBN: 978-3-642-37192-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics