Dynamic Generation of Investment Recommendations Using Grammatical Evolution.

Authors

DOI:

https://doi.org/10.9781/ijimai.2021.04.007

Keywords:

Dynamic Strategy, Evolutionary Computation, Finance, Grammatical Evolution, Structural Change, Trading
Supporting Agencies
The authors would like to acknowledge the financial support of the Spanish Ministry of Science, Innovation and Universities under grant PGC2018-096849-B-I00 (MCFin). This work has been supported by the Madrid Government (Comunidad de Madrid-Spain) under the Multiannual Agreement with UC3M in the line of Excellence of University Professors (EPUC3MXX), and in the context of the V PRICIT (Regional Programme of Research and Technological Innovation).

Abstract

The attainment of trading rules using Grammatical Evolution traditionally follows a static approach. A single rule is obtained and then used to generate investment recommendations over time. The main disadvantage of this approach is that it does not consider the need to adapt to the structural changes that are often associated with financial time series. We improve the canonical approach introducing an alternative that involves a dynamic selection mechanism that switches between an active rule and a candidate one optimized for the most recent market data available. The proposed solution seeks the flexibility required by structural changes while limiting the transaction costs commonly associated with constant model updates. The performance of the algorithm is compared with four alternatives: the standard static approach; a sliding window-based generation of trading rules that are used for a single time period, and two ensemble-based strategies. The experimental results, based on market data, show that the suggested approach beats the rest.

Downloads

Download data is not yet available.

References

F. Allen, R. Karjalainen, “Using genetic algorithms to find technical trading rules”, Journal of Financial Economics vol. 51, no. 2, pp. 245–271, 1999.

J.R. Koza, “Genetic programming as a means for programming computers by natural selection”, Statistics and Computing, vol. 4, no. 2, pp. 87–112 1994.

C. Ryan, J. Collins, M. O’Neil, “Grammatical Evolution: Evolving Programs for an Arbitrary Language”, in Proc. of the First European Workshop on GP. Springer Berlin Heidelberg pp. 83–96, 1998.

C. Setzkorn, L. Dipietro, R. Purshouse, “Evolving Rule-Based Trading Systems”, Technical Report ULCS-02-005, Department of Computer Science, University of Liverpool, 2002.

C.J. Neely, “Risk-adjusted, ex ante, optimal technical trading rules in equity markets”, International Review of Economics & Finance, vol. 12, pp 69–87, 2003.

N. Navet, S.H. Chen, “On predictability and profitability: Would GP induced trading rules be sensitive to the observed entropy of time series?”, Studies in Computational Intelligence, vol. 100, pp. 197–210, 2008.

D. Lohpetch, D. Corne, “Discovering effective technical trading rules with genetic programming: Towards robustly outperforming buy-andhold” in Proceedings of the World Congress on Nature and Biologically Inspired Computing, NABIC 2009, pp. 439–444.

D. Lohpetch, D. Corne, “Discovering effective technical trading rules with genetic programming: Towards robustly outperforming buy-andhold”, in Lecture Notes in Computer Science, vol. 6025, 2010, pp. 171–181.

J. How, M. Ling, P. Verhoeven, “Does size matter? A genetic programming approach to technical trading” Quantitative Finance, vol. 10, no. 2, pp. 131–140, 2010.

A. Esfahanipour, S. Mousavi, “A genetic programming model to generate risk-adjusted technical trading rules in stock markets”, Expert Systems with Applications, vol. 38, no. 7, pp. 8438–8445, 2011.

V. Manahov, R. Hudson, H. Hoque, “Return predictability and the ’wisdom of crowds’: Genetic Programming trading algorithms, the Marginal Trader Hypothesis and the Hayek Hypothesis”, Journal of International Financial Markets, Institutions and Money, vol. 37, pp. 85–98, 2015.

S.H. Chen, T.W. Kuo, K.M. Hoi, Genetic Programming and Financial Trading: How Much About “What We Know” In: Zopounidis C., Doumpos M., Pardalos P.M. (eds) Handbook of Financial Engineering. Springer Optimization and Its Applications, vol. 18 (Springer US, Boston, MA, 2008), pp. 99–154.

E.A. Gerlein, M. McGinnity, A. Belatreche, S. Coleman, “Evaluating ma- chine learning classification for financial trading: An empirical approach”, Expert Systems with Applications, vol. 54, pp. 193–207, 2016.

R. Ray, P. Khandelwal, B. Baranidharan, “A survey on stock market prediction using artificial intelligence techniques”, in 2018 International Conference on Smart Systems and Inventive Technology (ICSSIT), pp. 594–598.

T.L. Meng, M. Khushi, “Reinforcement learning in financial markets”, Data, vol. 4, no. 3, 110, pp. 1–17, 2019.

A. Brabazon, “Grammatical Evolution in Finance and Economics: A Survey”, in Ryan C., O’Neill M., Collins J. (eds) Handbook of Grammatical Evolution. Springer, pp. 263–288, 2018.

C. Martín, D. Quintana, P. Isasi, “Evolution of trading strategies with flexible structures: A configuration comparison”. Neurocomputing, vol. 331, pp. 242–262, 2019.

A. Brabazon, M. O’Neill, “Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution”, Computational Management Science, vol. 1, pp. 311–327, 2004.

I. Dempsey, M. O’Neill, A. Brabazon, “Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution”, GECCO 2004 Workshop Proceedings pp. 9137–9142, 2004.

I. Contreras, J.I. Hidalgo, L. Nunez-Letamendia, “Evolving technical trading rules for spot foreign- exchange markets using grammatical evolution”, in Applications of Evolutionary Computing, EvoApplications 2013: EvoCOMNET, EvoCOMPLEX, EvoENERGY, EvoFIN, EvoGAMES, EvoIASP, EvoINDUSTRY, EvoNUM, EvoPAR, EvoRISK, EvoROBOT, EvoSTOC, vol. 7835 (Springer, Berlin, Heidelberg, 2013), pp. 244–253.

I. Contreras, J.I. Hidalgo, L. Núñez-Letamendia, “A GA Combining Technical and Fundamental Analysis for Trading the Stock Market”, in A GA combining technical and fundamental analysis for trading the stock market (Springer, Berlin, Heidelberg, 2012), pp. 174–183.

I. Contreras, J.I. Hidalgo, L. Núñez-Letamendia, “Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution”, Journal of Intelligent and Fuzzy Systems, vol. 32, no. 3, pp. 2461–2475, 2017.

I. Contreras, J.I. Hidalgo, L. Nuñez-Letamendia, J.M. Velasco, “A metagrammatical evolutionary process for portfolio selection and trading”, Genetic Programming and Evolvable Machines, vol. 18, no. 4, pp. 411–431, 2017.

H. Schmidbauer, A. Rösch, T. Sezer, V.S. Tunaliogˇlu, “Robust trading rule selection and forecasting accuracy”, Journal of Systems Science and Complexity, vol. 27, no. 1, pp. 169–180, 2014.

C. Oesch, D. Maringer, “Robust trading rule selection and forecasting accuracy”, Quantitative Finance, vol. 17, no. 5, pp. 717–727, 2017.

C. Martín, D. Quintana, P. Isasi, “Grammatical evolution-based ensembles for algorithmic trading”, Applied Soft Computing, vol. 84, 105713, pp. 1–10, 2019.

R. Arjun, K. R, Suprabha, “Innovation and Challenges of Blockchain in Banking: A Scientometric View”. International Journal of Interactive Multimedia and Artificial Intelligence, vol. 6, no. 3, pp. 7–14, 2020. 10.9781/ijimai.2020.03.004.

A.T. Chatfield, C. Reddick, “Blockchain Investment Decision Making in Central Banks: A Status Quo Bias Theory Perspective”, in Proceedings of Americas Conference on Information Systems AMICS 2019 Proceedings pp. 1–10.

F.Z. Benkaddour, N. Taghezout, F.Z. Kaddour-Ahmed, I.-A. Hammadi, “An adapted approach for user profiling in a recommendation system: Application to industrial diagnosis”, International Journal of Interactive Multimedia and Artificial Intelligence, vol 5, no. 3, pp. 118–130, 2018.

L. Becker, M. Seshadri, “GP-evolved technical trading rules can outperform buy and hold”, in Proceedings of the Sixth International Conference on Computational Intelligence and Natural Computing, Embassy Suites Hotel and Conference Center, Cary, North Carolina USA, September 26- 30, 2003, pp. 26–30.

H., Lilliefors, “On the Kolmogorov–Smirnov test for normality with mean and variance unknown”, Journal of the American Statistical Association, vol. 62, pp. 399–402, 1967.

F., Wilcoxon, “Individual comparisons by ranking methods”, Biometrics Bulletin, vol. 1, no. 6, pp. 80–83, 1945.

H., Levene, “Robust tests for equality of variances” In Ingram Olkin; Harold Hotelling; et al. (eds.). Contributions to Probability and Statistics: Essays in Honor of Harold Hotelling. Stanford University Press. pp. 278–292, 1960.

“Student” W. S. Gosset, “The probable error of a mean”, Biometrika, vol. 6, vol. 1, pp. 1–25, 1908.

B.L., Welch, “The generalization of ‘Student’s problem’ when several different population variances are involved”. Biometrika, vol. 34, no. 1–2, pp. 28–35, 1947.

Downloads

Published

2021-06-01
Metrics
Views/Downloads
  • Abstract
    210
  • PDF
    47

How to Cite

Martín, C., Quintana, D., and Isasi, P. (2021). Dynamic Generation of Investment Recommendations Using Grammatical Evolution. International Journal of Interactive Multimedia and Artificial Intelligence, 6(6), 104–111. https://doi.org/10.9781/ijimai.2021.04.007