IDEAS home Printed from https://ideas.repec.org/p/war/wpaper/2018-25.html
   My bibliography  Save this paper

Machine learning in algorithmic trading strategy optimization - implementation and efficiency

Author

Listed:
  • Przemysław Ryś

    (Quantitative Finance Research Group, Faculty of Economic Sciences, University of Warsaw)

  • Robert Ślepaczuk

    (Quantitative Finance Research Group, Faculty of Economic Sciences, University of Warsaw)

Abstract

The main aim of this paper was to formulate and analyze the machine learning methods, fitted to the strategy parameters optimization specificity. The most important problems are the sensitivity of a strategy performance to little parameter changes and numerous local extrema distributed over the solution space in an irregular way. The methods were designed for the purpose of significant shortening of the computation time, without a substantial loss of a strategy quality. The efficiency of methods was compared for three different pairs of assets in case of moving averages crossover system. The methods operated on the in sample data, containing 20 years of daily prices between 1998 and 2017. The problem was presented for three sets of two assets portfolios. In the first case, a strategy was trading on the SPX and DAX index futures, in the second on the AAPL and MSFT stocks and finally, in the third case on the HGF and CBF commodities futures. The major hypothesis verified in this thesis is that machine learning methods select strategies with evaluation criterion near to the highest one, but in significantly lower execution time than the Exhaustive Search.

Suggested Citation

  • Przemysław Ryś & Robert Ślepaczuk, 2018. "Machine learning in algorithmic trading strategy optimization - implementation and efficiency," Working Papers 2018-25, Faculty of Economic Sciences, University of Warsaw.
  • Handle: RePEc:war:wpaper:2018-25
    as

    Download full text from publisher

    File URL: https://www.wne.uw.edu.pl/index.php/download_file/4680/
    File Function: First version, 2018
    Download Restriction: no
    ---><---

    References listed on IDEAS

    as
    1. Gunasekarage, Abeyratna & Power, David M., 2001. "The profitability of moving average trading rules in South Asian stock markets," Emerging Markets Review, Elsevier, vol. 2(1), pages 17-33, March.
    2. Ardia, David & Boudt, Kris & Carl, Peter & Mullen, Katharine M. & Peterson, Brian, 2010. "Differential Evolution (DEoptim) for Non-Convex Portfolio Optimization," MPRA Paper 22135, University Library of Munich, Germany.
    Full references (including those not matched with items on IDEAS)

    Citations

    Citations are extracted by the CitEc Project, subscribe to its RSS feed for this item.
    as


    Cited by:

    1. Kamil Korzeń & Robert Ślepaczuk, 2019. "Hybrid Investment Strategy Based on Momentum and Macroeconomic Approach," Working Papers 2019-17, Faculty of Economic Sciences, University of Warsaw.

    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. Ryś Przemysław & Ślepaczuk Robert, 2018. "Machine Learning Methods in Algorithmic Trading Strategy Optimization – Design and Time Efficiency," Central European Economic Journal, Sciendo, vol. 5(52), pages 206-229, January.
    2. Bilel JARRAYA, 2013. "Asset Allocation And Portfolio Optimization Problems With Metaheuristics: A Literature Survey," Business Excellence and Management, Faculty of Management, Academy of Economic Studies, Bucharest, Romania, vol. 3(4), pages 38-56, December.
    3. 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.
    4. Mullen, Katharine M. & Ardia, David & Gil, David L. & Windover, Donald & Cline, James, 2011. "DEoptim: An R Package for Global Optimization by Differential Evolution," Journal of Statistical Software, Foundation for Open Access Statistics, vol. 40(i06).
    5. Michael D. McKenzie, 2007. "Technical Trading Rules in Emerging Markets and the 1997 Asian Currency Crises," Emerging Markets Finance and Trade, Taylor & Francis Journals, vol. 43(4), pages 46-73, August.
    6. Chong, Terence Tai-Leung & Ip, Hugo Tak-Sang, 2009. "Do momentum-based strategies work in emerging currency markets?," Pacific-Basin Finance Journal, Elsevier, vol. 17(4), pages 479-493, September.
    7. Yen-Sen Ni & Jen-Tsai Lee & Yi-Ching Liao, 2013. "Do variable length moving average trading rules matter during a financial crisis period?," Applied Economics Letters, Taylor & Francis Journals, vol. 20(2), pages 135-141, February.
    8. Narayan, Paresh Kumar & Phan, Dinh Hoang Bach & Bannigidadmath, Deepa, 2017. "Is the profitability of Indian stocks compensation for risks?," Emerging Markets Review, Elsevier, vol. 31(C), pages 47-64.
    9. Matheus José Silva de Souza & Danilo Guimarães Franco Ramos & Marina Garcia Pena & Vinicius Amorim Sobreiro & Herbert Kimura, 2018. "Examination of the profitability of technical analysis based on moving average strategies in BRICS," Financial Innovation, Springer;Southwestern University of Finance and Economics, vol. 4(1), pages 1-18, December.
    10. Md. Abu HASAN, 2017. "Efficiency and Volatility of the Stock Market in Bangladesh: A Macroeconometric Analysis," Turkish Economic Review, KSP Journals, vol. 4(2), pages 239-249, June.
    11. Stefanescu, Răzvan & Dumitriu, Ramona, 2015. "Buy and sell signals on Bucharest Stock Exchange," MPRA Paper 89014, University Library of Munich, Germany, revised 05 Jan 2016.
    12. Jun-Cheng Chen & Cong-Xiao Chen & Li-Juan Duan & Zhi Cai, 2022. "DDPG based on multi-scale strokes for financial time series trading strategy," Papers 2207.10071, arXiv.org.
    13. Shangkun Deng & Zhihao Su & Yanmei Ren & Haoran Yu & Yingke Zhu & Chenyang Wei, 2022. "Can Japanese Candlestick Patterns be Profitable on the Component Stocks of the SSE50 Index?," SAGE Open, , vol. 12(3), pages 21582440221, August.
    14. Narayan, Paresh Kumar & Ahmed, Huson Ali & Sharma, Susan Sunila & K.P., Prabheesh, 2014. "How profitable is the Indian stock market?," Pacific-Basin Finance Journal, Elsevier, vol. 30(C), pages 44-61.
    15. Yufeng Lin & Xiaogang Wang & Yuehua Wu, 2023. "An Adaptive Multiple-Asset Portfolio Strategy with User-Specified Risk Tolerance," Mathematics, MDPI, vol. 11(7), pages 1-35, March.
    16. Adam, Anokye M. & Tweneboah, George, 2008. "Do macroeconomic variables play any role in the stock market movement in Ghana?," MPRA Paper 9357, University Library of Munich, Germany, revised 2008.
    17. Muhammad Arif & Muddasar Hasan & Abu Bakr & Muhammad Ziaullah & Muhammad Ali Tarer, 2018. "Profitability Of The Moving Averages Technical Trading Rules In An Emerging Stock Market-A Study Of Individual Stocks Listed On Pakistan Stock Exchange," IBT Journal of Business Studies (JBS), Ilma University, Faculty of Management Science, vol. 14(2), pages 67-76.
    18. Stephan Schulmeister, 2007. "The Interaction Between the Aggregate Behaviour of Technical Trading Systems and Stock Price Dynamics," WIFO Working Papers 290, WIFO.
    19. Ankit Dangi, 2013. "Financial Portfolio Optimization: Computationally guided agents to investigate, analyse and invest!?," Papers 1301.4194, arXiv.org.
    20. Chris Doucouliagos, 2005. "Price exhaustion and number preference: time and price confluence in Australian stock prices," The European Journal of Finance, Taylor & Francis Journals, vol. 11(3), pages 207-221.

    More about this item

    Keywords

    machine learning; algorithm; trading; investment; automatization; strategy; optimization; differential evolutionary method; cross-validation; overfitting;
    All these keywords.

    JEL classification:

    • C4 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics
    • C45 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods: Special Topics - - - Neural Networks and Related Topics
    • C61 - Mathematical and Quantitative Methods - - Mathematical Methods; Programming Models; Mathematical and Simulation Modeling - - - Optimization Techniques; Programming Models; Dynamic Analysis
    • C15 - Mathematical and Quantitative Methods - - Econometric and Statistical Methods and Methodology: General - - - Statistical Simulation Methods: General
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading
    • G17 - Financial Economics - - General Financial Markets - - - Financial Forecasting and Simulation

    NEP fields

    This paper has been announced in the following NEP Reports:

    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:war:wpaper:2018-25. 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: Marcin Bąba (email available below). General contact details of provider: https://edirc.repec.org/data/fesuwpl.html .

    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.