A GA Combining Technical and Fundamental Analysis for Trading the Stock Market

  • Iván Contreras
  • José Ignacio Hidalgo
  • Laura Núñez-Letamendia
Part of the Lecture Notes in Computer Science book series (LNCS, volume 7248)


Nowadays, there are two types of financial analysis oriented to design trading systems: fundamental and technical. Fundamental analysis consists in the study of all information (both financial and nonfinancial) available on the market, with the aim of carrying out efficient investments. By contrast, technical analysis works under the assumption that when we analyze the price action in a specific market, we are (indirectly) analyzing all the factors related to the market. In this paper we propose the use of an Evolutionary Algorithm to optimize the parameters of a trading system which combines Fundamental and Technical analysis (indicators). The algorithm takes advantage of a new operator called Filling Operator which avoids problems of premature convergence and reduce the number of evaluations needed. The experimental results are promising, since when the methodology is applied to values of 100 companies in a year, they show a possible return of 830% compared with a 180% of the Buy and Hold strategy.


Stock Return Crossover Operator Trading System Premature Convergence Sales Growth 
These keywords were added by machine and not by the authors. This process is experimental and the keywords may be updated as the learning algorithm improves.


Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.


  1. 1.
    Allen, F., Karjalainen, R.: Using genetic algorithms to find technical trading rules. Journal of Financial Economics 51(2), 245–271 (1999)CrossRefGoogle Scholar
  2. 2.
    Bali, T.G., Demirtas, O., Tehranian, H.: Aggregate earnings, firm-level earnings, and expected stock returns. JFQA 43(3), 657–684 (2008)CrossRefGoogle Scholar
  3. 3.
    Basu, S.: The investment performance of common stocks in relation to their price-earnings ratios: A test of the efficient market hypothesis. Journal of Finance 32, 663–682 (1977)CrossRefGoogle Scholar
  4. 4.
    Bodas-Sagi, D.J., Fernández, P., Hidalgo, J.I., Soltero, F.J., Risco-Martín, J.L.: Multiobjective optimization of technical market indicators. In: Proceedings of the GECCO 2009 Conference (Companion), pp. 1999–2004. ACM, New York (2009)CrossRefGoogle Scholar
  5. 5.
    Campbell, Yogo: Efficient tests of stock return predictability. Journal of Financial Economics 81, 27–60 (2006)CrossRefGoogle Scholar
  6. 6.
    Chan, L.K.C., Hamao, Y., Lakonishok, R.: Journal of finance. Fundamentals and Stock Returns in Japan, 1739–1764 (December 1991)Google Scholar
  7. 7.
    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
  8. 8.
    Fama, E., French: The cross-section of expected stock returns. Journal of Finance 47(2), 427–465 (1992)CrossRefGoogle Scholar
  9. 9.
    Fama, E.F., French, K.R.: Business conditions and expected returns on stocks and bonds. Journal of Financial Economics 25, 23–49 (1989)CrossRefGoogle Scholar
  10. 10.
    Fernández, P., Bodas-Sagi, D.J., Soltero, F.J., Hidalgo, J.I.: Technical market indicators optimization using evolutionary algorithms. In: Proceedings of the GECCO 2008 Conference (Companion), pp. 1851–1858. ACM, New York (2008)CrossRefGoogle Scholar
  11. 11.
    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 on Computing in Economics and Finance, University of Technology, Sydney, Australia, The Society for Computational Economics (July 2009)Google Scholar
  12. 12.
    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
  13. 13.
    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
  14. 14.
    Núñez, L.: Trading systems designed by genetic algorithms. Managerial Finance 28, 87–106 (2002)CrossRefGoogle Scholar
  15. 15.
    Reinganum, M.: Selecting superior securities charlottesville. the tesearch foundation of the institute of chartered financial analysts. Technical report, The Research foundation of the institute of Chartered Financial Analysts (1988)Google Scholar
  16. 16.
    Sywerda, G.: Uniform crossover in genetic algorithms. In: Proceedings of the Third International Conference on Genetic Algorithms, pp. 2–9. Morgan Kaufmann Publishers Inc., San Francisco (1989)Google Scholar

Copyright information

© Springer-Verlag Berlin Heidelberg 2012

Authors and Affiliations

  • Iván Contreras
    • 1
  • José Ignacio Hidalgo
    • 1
  • Laura Núñez-Letamendia
    • 2
  1. 1.Facultad de InformáticaUniversidad Complutense de MadridMadridSpain
  2. 2.IE Business SchoolMadridSpain

Personalised recommendations