IDEAS home Printed from https://ideas.repec.org/a/kap/fmktpm/v38y2024i3d10.1007_s11408-024-00451-8.html
   My bibliography  Save this article

Can machine learning make technical analysis work?

Author

Listed:
  • Andrea Rigamonti

    (Masaryk University)

Abstract

Technical analysis is generally regarded as an ineffective investment strategy. However, with the advent of machine learning in finance, it has been suggested that technical indicators can play a role as features when trying to predict asset returns. One direct application of this approach is portfolio selection and optimization. Technical indicators as predictors represent an attractive choice, as they can easily be obtained. However, although some studies addressed this topic, the literature on this subject is still not well developed. In this study, we apply tree-based methods that use technical indicators as predictors for daily stock returns. We describe the procedures employed for the tuning of the models and we then develop some portfolio strategies that build on the predictions provided by such models. Finally, we conduct a detailed empirical analysis to gauge the profitability of the approach considered in this paper. We find that our machine learning model shows predictive power and that its performance greatly increases when feature selection is performed. While the resulting investing strategies do not consistently beat simpler alternatives after accounting for transaction costs, our results look promising and provide new insights on the use of technical indicators as stock return predictors.

Suggested Citation

  • Andrea Rigamonti, 2024. "Can machine learning make technical analysis work?," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 38(3), pages 399-412, September.
  • Handle: RePEc:kap:fmktpm:v:38:y:2024:i:3:d:10.1007_s11408-024-00451-8
    DOI: 10.1007/s11408-024-00451-8
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s11408-024-00451-8
    File Function: Abstract
    Download Restriction: Access to full text is restricted to subscribers.

    File URL: https://libkey.io/10.1007/s11408-024-00451-8?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Bajgrowicz, Pierre & Scaillet, Olivier, 2012. "Technical trading revisited: False discoveries, persistence tests, and transaction costs," Journal of Financial Economics, Elsevier, vol. 106(3), pages 473-491.
    2. Tu, Jun & Zhou, Guofu, 2011. "Markowitz meets Talmud: A combination of sophisticated and naive diversification strategies," Journal of Financial Economics, Elsevier, vol. 99(1), pages 204-215, January.
    3. Wright, Marvin N. & Ziegler, Andreas, 2017. "ranger: A Fast Implementation of Random Forests for High Dimensional Data in C++ and R," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 77(i01).
    4. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," Review of Finance, European Finance Association, vol. 33(5), pages 2223-2273.
    5. Neely, Christopher & Weller, Paul & Dittmar, Rob, 1997. "Is Technical Analysis in the Foreign Exchange Market Profitable? A Genetic Programming Approach," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 32(4), pages 405-426, December.
    6. Victor DeMiguel & Lorenzo Garlappi & Raman Uppal, 2009. "Optimal Versus Naive Diversification: How Inefficient is the 1-N Portfolio Strategy?," The Review of Financial Studies, Society for Financial Studies, vol. 22(5), pages 1915-1953, May.
    7. Shihao Gu & Bryan Kelly & Dacheng Xiu, 2020. "Empirical Asset Pricing via Machine Learning," The Review of Financial Studies, Society for Financial Studies, vol. 33(5), pages 2223-2273.
    8. Andrew W. Lo & Harry Mamaysky & Jiang Wang, 2000. "Foundations of Technical Analysis: Computational Algorithms, Statistical Inference, and Empirical Implementation," Journal of Finance, American Finance Association, vol. 55(4), pages 1705-1765, August.
    9. LeBaron, Blake, 1999. "Technical trading rule profitability and foreign exchange intervention," Journal of International Economics, Elsevier, vol. 49(1), pages 125-143, October.
    10. Neftci, Salih N, 1991. "Naive Trading Rules in Financial Markets and Wiener-Kolmogorov Prediction Theory: A Study of "Technical Analysis."," The Journal of Business, University of Chicago Press, vol. 64(4), pages 549-571, October.
    11. Ravi Jagannathan & Tongshu Ma, 2003. "Risk Reduction in Large Portfolios: Why Imposing the Wrong Constraints Helps," Journal of Finance, American Finance Association, vol. 58(4), pages 1651-1683, August.
    12. Mingyue Qiu & Yu Song, 2016. "Predicting the Direction of Stock Market Index Movement Using an Optimized Artificial Neural Network Model," PLOS ONE, Public Library of Science, vol. 11(5), pages 1-11, May.
    13. Victor DeMiguel & Lorenzo Garlappi & Francisco J. Nogales & Raman Uppal, 2009. "A Generalized Approach to Portfolio Optimization: Improving Performance by Constraining Portfolio Norms," Management Science, INFORMS, vol. 55(5), pages 798-812, May.
    14. repec:bla:jfinan:v:58:y:2003:i:4:p:1651-1684 is not listed on IDEAS
    15. Marshall, Ben R. & Cahan, Rochester H. & Cahan, Jared M., 2008. "Does intraday technical analysis in the U.S. equity market have value?," Journal of Empirical Finance, Elsevier, vol. 15(2), pages 199-210, March.
    16. Philipp J. Kremer & Andreea Talmaciu & Sandra Paterlini, 2018. "Risk minimization in multi-factor portfolios: What is the best strategy?," Annals of Operations Research, Springer, vol. 266(1), pages 255-291, July.
    17. Fang, Jiali & Qin, Yafeng & Jacobsen, Ben, 2014. "Technical market indicators: An overview," Journal of Behavioral and Experimental Finance, Elsevier, vol. 4(C), pages 25-56.
    18. Brock, William & Lakonishok, Josef & LeBaron, Blake, 1992. "Simple Technical Trading Rules and the Stochastic Properties of Stock Returns," Journal of Finance, American Finance Association, vol. 47(5), pages 1731-1764, December.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Hsu, Po-Hsuan & Han, Qiheng & Wu, Wensheng & Cao, Zhiguang, 2018. "Asset allocation strategies, data snooping, and the 1 / N rule," Journal of Banking & Finance, Elsevier, vol. 97(C), pages 257-269.
    2. Noureddine Kouaissah & Amin Hocine, 2021. "Forecasting systemic risk in portfolio selection: The role of technical trading rules," Journal of Forecasting, John Wiley & Sons, Ltd., vol. 40(4), pages 708-729, July.
    3. Roccazzella, Francesco & Gambetti, Paolo & Vrins, Frédéric, 2022. "Optimal and robust combination of forecasts via constrained optimization and shrinkage," International Journal of Forecasting, Elsevier, vol. 38(1), pages 97-116.
    4. Ni, Xuanming & Zheng, Tiantian & Zhao, Huimin & Zhu, Shushang, 2023. "High-dimensional portfolio optimization based on tree-structured factor model," Pacific-Basin Finance Journal, Elsevier, vol. 81(C).
    5. Tu, Xueyong & Li, Bin, 2024. "Robust portfolio selection with smart return prediction," Economic Modelling, Elsevier, vol. 135(C).
    6. Afiruddin Tapa* & Mohd Hasimi Yaacob & Ahmad Husni Hamzah & Yean Soh Chuen, 2018. "Trading Performance Analysis: A Comparisons Between the Original MA Crossover and Modified MA Crossover Strategy," The Journal of Social Sciences Research, Academic Research Publishing Group, pages 933-941:6.
    7. De Nard, Gianluca & Zhao, Zhao, 2023. "Using, taming or avoiding the factor zoo? A double-shrinkage estimator for covariance matrices," Journal of Empirical Finance, Elsevier, vol. 72(C), pages 23-35.
    8. Immo Stadtmüller & Benjamin R. Auer & Frank Schuhmacher, 2024. "Core-satellite investing with commodity futures momentum," Journal of Asset Management, Palgrave Macmillan, vol. 25(3), pages 261-287, May.
    9. Breitung, Christian, 2023. "Automated stock picking using random forests," Journal of Empirical Finance, Elsevier, vol. 72(C), pages 532-556.
    10. Yang, Junmin & Cao, Zhiguang & Han, Qiheng & Wang, Qiyu, 2019. "Tactical asset allocation on technical trading rules and data snooping," Pacific-Basin Finance Journal, Elsevier, vol. 57(C).
    11. Qing Zhou & Robert Faff, 2017. "The complementary role of cross-sectional and time-series information in forecasting stock returns," Australian Journal of Management, Australian School of Business, vol. 42(1), pages 113-139, February.
    12. Candelon, B. & Hurlin, C. & Tokpavi, S., 2012. "Sampling error and double shrinkage estimation of minimum variance portfolios," Journal of Empirical Finance, Elsevier, vol. 19(4), pages 511-527.
    13. Bajgrowicz, Pierre & Scaillet, Olivier, 2012. "Technical trading revisited: False discoveries, persistence tests, and transaction costs," Journal of Financial Economics, Elsevier, vol. 106(3), pages 473-491.
    14. Maillet, Bertrand & Tokpavi, Sessi & Vaucher, Benoit, 2015. "Global minimum variance portfolio optimisation under some model risk: A robust regression-based approach," European Journal of Operational Research, Elsevier, vol. 244(1), pages 289-299.
    15. Wong, Wing-Keung & Du, Jun & Chong, Terence Tai-Leung, 2005. "Do the technical indicators reward chartists? A study on the stock markets of China, Hong Kong and Taiwan," Review of Applied Economics, Lincoln University, Department of Financial and Business Systems, vol. 1(2), pages 1-23.
    16. Füss, Roland & Miebs, Felix & Trübenbach, Fabian, 2014. "A jackknife-type estimator for portfolio revision," Journal of Banking & Finance, Elsevier, vol. 43(C), pages 14-28.
    17. Bertrand Maillet & Thierry Michel, 2000. "Further insights on the puzzle of technical analysis profitability," The European Journal of Finance, Taylor & Francis Journals, vol. 6(2), pages 196-224.
    18. Paul Handro & Bogdan Dima, 2024. "Analyzing Financial Markets Efficiency: Insights from a Bibliometric and Content Review," Journal of Financial Studies, Institute of Financial Studies, vol. 16(9), pages 119-175, May.
    19. Paolella, Marc S. & Polak, Paweł & Walker, Patrick S., 2021. "A non-elliptical orthogonal GARCH model for portfolio selection under transaction costs," Journal of Banking & Finance, Elsevier, vol. 125(C).
    20. Dan Anghel, 2013. "How Reliable is the Moving Average Crossover Rule for an Investor on the Romanian Stock Market?," The Review of Finance and Banking, Academia de Studii Economice din Bucuresti, Romania / Facultatea de Finante, Asigurari, Banci si Burse de Valori / Catedra de Finante, vol. 5(2), pages 089-115, December.

    More about this item

    Keywords

    Machine learning; Portfolio selection; Prediction; Technical analysis;
    All these keywords.

    JEL classification:

    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:kap:fmktpm:v:38:y:2024:i:3:d:10.1007_s11408-024-00451-8. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.