Computing Trading Strategies Based on Financial Sentiment Data Using Evolutionary Optimization

  • Ronald Hochreiter
Conference paper
Part of the Advances in Intelligent Systems and Computing book series (AISC, volume 378)


In this paper we apply evolutionary optimization techniques to compute optimal rule-based trading strategies based on financial sentiment data. The sentiment data was extracted from the social media service StockTwits to accommodate the level of bullishness or bearishness of the online trading community towards certain stocks. Numerical results for all stocks from the Dow Jones Industrial Average (DJIA) index are presented and a comparison to classical risk-return portfolio selection is provided.


Evolutionary optimization Sentiment analysis Technical trading Portfolio optimization 


  1. 1.
    Feldman, R.: Techniques and applications for sentiment analysis. Commun. ACM 56(4), 82–89 (2013)CrossRefGoogle Scholar
  2. 2.
    Bollen, J., Mao, H., Zeng, X.: Twitter mood predicts the stock market. J. Comput. Sci. 2(1), 1–8 (2011)CrossRefGoogle Scholar
  3. 3.
    Oliveira, N., Cortez, P., Areal, N.: On the predictability of stock market behavior using StockTwits sentiment and posting volume. Lect. Notes Comput. Sci. 8154, 355–365 (2013)Google Scholar
  4. 4.
    Smailović, J., Grčar, M., Lavrač, N., Žnidaršič, M.: Stream-based active learning for sentiment analysis in the financial domain. Inf. Sci. 285, 181–203 (2014)CrossRefGoogle Scholar
  5. 5.
    Markowitz, H.: Portfolio selection. J. Financ. 7(1), 77–91 (1952)Google Scholar
  6. 6.
    Gottschalk, L.A., Gleser, G.C.: Measurement of Psychological States Through the Content Analysis of Verbal Behaviour. University of California Press (1969)Google Scholar
  7. 7.
    Surowiecki, J.: The Wisdom of Crowds. Anchor Books (2005)Google Scholar
  8. 8.
    Das, S.R., Chen, M.Y.: Yahoo! for Amazon: sentiment extraction from small talk on the web. Manage. Sci. 53(9), 1375–1388 (2007)CrossRefGoogle Scholar
  9. 9.
    Tumarkin, R., Whitelaw, R.F.: News or noise? Internet postings and stock prices. Financ. Anal. J. 57(3), 41–51 (2001)CrossRefGoogle Scholar
  10. 10.
    Oliveira, N., Cortez, P., Areal, N.: Automatic creation of stock market lexicons for sentiment analysis using StockTwits data. In: Proceedings of the 18th International Database Engineering & Applications Symposium, ACM, pp. 115–123 (2014)Google Scholar
  11. 11.
    Brabazon, A., O’Neill, M. (eds.): Natural computing in computational finance. Volume 100 of Studies in Computational Intelligence. Springer (2008)Google Scholar
  12. 12.
    Brabazon, A., O’Neill, M. (eds.): Natural computing in computational finance, volume 2. Volume 185 of Studies in Computational Intelligence. Springer (2009)Google Scholar
  13. 13.
    Brabazon, A., O’Neill, M., Maringer, D. (eds.): Natural computing in computational finance, volume 3. Volume 293 of Studies in Computational Intelligence. Springer (2010)Google Scholar
  14. 14.
    Bradley, R.G., Brabazon, A., O’Neill, M.: Evolving trading rule-based policies. Lect. Notes Comput. Sci. 6025, 251–260 (2010)Google Scholar
  15. 15.
    Brabazon, A., O’Neill, M.: Evolving technical trading rules for spot foreign-exchange markets using grammatical evolution. Comput. Manage. Sci. 1(3–4), 311–327 (2004)Google Scholar
  16. 16.
    Brabazon, A., O’Neill, M.: Intra-day trading using grammatical evolution. In: Brabazon, A., O’Neill, M. (eds.) Biologically Inspired Algorithms for Financial Modelling, pp. 203–210. Springer (2006)Google Scholar
  17. 17.
    Lipinski, P., Korczak, J.J.: Performance measures in an evolutionary stock trading expert system. Lect. Notes Comput. Sci. 3039, 835–842 (2004)Google Scholar
  18. 18.
    Sharpe, W.F.: The sharpe ratio. J. Portfolio Manage. 21(1), 49–58 (1994)CrossRefGoogle Scholar
  19. 19.
    Blum, C., Roli, A.: Metaheuristics in combinatorial optimization: overview and conceptual comparison. ACM Comput. Surv. 35(3), 268–308 (2003)CrossRefGoogle Scholar
  20. 20.
    R Core Team: R: a language and environment for statistical computing. R Foundation for Statistical Computing, Vienna, Austria (2014)Google Scholar
  21. 21.
    DeMiguel, V., Garlappi, L., Uppal, R.: Optimal versus naive diversification: How inefficient is the 1/n portfolio strategy? Rev. Financ. Stud. 22(5), 1915–1953 (2009)CrossRefGoogle Scholar
  22. 22.
    Peterson, B.G., Carl, P.: PerformanceAnalytics: econometric tools for performance and risk analysis. R package version 1.4.3541 (2014)Google Scholar

Copyright information

© Springer International Publishing Switzerland 2015

Authors and Affiliations

  1. 1.Department of Finance, Accounting and StatisticsWU Vienna University of Economics and BusinessWienAustria

Personalised recommendations